public static function check(Plugin $plugin, ReflectionClass $info) : bool
  {
    /**
     * Check if plugin meets the minimum requirements
     */
    if (
      array_key_exists('PACKAGE', $info->getConstants()) &&
      array_key_exists('VERSION', $info->getConstants()) &&
      (
        array_key_exists('AUTHORS', $info->getConstants()) &&
        is_array($info->getConstants()['AUTHORS'])
      ) &&
      array_key_exists('FRAMEWORK', $info->getConstants())
    ) {
      return self::isCompatable($plugin);
    }

    /**
     * Plugin does not meet the minimum requirements
     */
    return false;
  }
public static function check(Plugin $plugin, ReflectionClass $info) : bool
  {
    /**
     * Check if plugin meets the minimum requirements
     */
    if (
      array_key_exists('PACKAGE', $info->getConstants()) &&
      array_key_exists('VERSION', $info->getConstants()) &&
      (
        array_key_exists('AUTHORS', $info->getConstants()) &&
        is_array($info->getConstants()['AUTHORS'])
      ) &&
      array_key_exists('FRAMEWORK', $info->getConstants())
    ) {
      return self::isCompatable($plugin);
    }

    /**
     * Plugin does not meet the minimum requirements
     */
    return false;
  }
public static function check ( Plugin $ plugin , ReflectionClass $ info ) : bool { /**
     * Check if plugin meets the minimum requirements
     */ if ( array_key_exists ( 'PACKAGE' , $ info -> getConstants ( ) ) && array_key_exists ( 'VERSION' , $ info -> getConstants ( ) ) && ( array_key_exists ( 'AUTHORS' , $ info -> getConstants ( ) ) && is_array ( $ info -> getConstants ( ) [ 'AUTHORS' ] ) ) && array_key_exists ( 'FRAMEWORK' , $ info -> getConstants ( ) ) ) { return self :: isCompatable ( $ plugin ) ; } /**
     * Plugin does not meet the minimum requirements
     */ return false ; }
Check if plugin is usable

@param Plugin $plugin
@return bool
Check if plugin is usable