diff --git a/.requirement-checker/bin/check-requirements.php b/.requirement-checker/bin/check-requirements.php index 967492955..b37e373b1 100644 --- a/.requirement-checker/bin/check-requirements.php +++ b/.requirement-checker/bin/check-requirements.php @@ -1,12 +1,12 @@ evaluateRequirements(); - $io = new \HumbugBox373\KevinGH\RequirementChecker\IO(); - self::printCheck($checkPassed, new \HumbugBox373\KevinGH\RequirementChecker\Printer($io->getVerbosity(), $io->hasColorSupport()), $requirements); + $io = new \HumbugBox380\KevinGH\RequirementChecker\IO(); + self::printCheck($checkPassed, new \HumbugBox380\KevinGH\RequirementChecker\Printer($io->getVerbosity(), $io->hasColorSupport()), $requirements); return $checkPassed; } - public static function printCheck($checkPassed, \HumbugBox373\KevinGH\RequirementChecker\Printer $printer, \HumbugBox373\KevinGH\RequirementChecker\RequirementCollection $requirements) + public static function printCheck($checkPassed, \HumbugBox380\KevinGH\RequirementChecker\Printer $printer, \HumbugBox380\KevinGH\RequirementChecker\RequirementCollection $requirements) { - if (\false === $checkPassed && \HumbugBox373\KevinGH\RequirementChecker\IO::VERBOSITY_VERY_VERBOSE > $printer->getVerbosity()) { - $printer->setVerbosity(\HumbugBox373\KevinGH\RequirementChecker\IO::VERBOSITY_VERY_VERBOSE); + if (\false === $checkPassed && \HumbugBox380\KevinGH\RequirementChecker\IO::VERBOSITY_VERY_VERBOSE > $printer->getVerbosity()) { + $printer->setVerbosity(\HumbugBox380\KevinGH\RequirementChecker\IO::VERBOSITY_VERY_VERBOSE); } - $verbosity = \HumbugBox373\KevinGH\RequirementChecker\IO::VERBOSITY_VERY_VERBOSE; + $verbosity = \HumbugBox380\KevinGH\RequirementChecker\IO::VERBOSITY_VERY_VERBOSE; $iniPath = $requirements->getPhpIniPath(); $printer->title('Box Requirements Checker', $verbosity); $printer->printv('> Using PHP ', $verbosity); @@ -42,9 +42,9 @@ public static function printCheck($checkPassed, \HumbugBox373\KevinGH\Requiremen $errorMessages = array(); foreach ($requirements->getRequirements() as $requirement) { if ($errorMessage = $printer->getRequirementErrorMessage($requirement)) { - if (\HumbugBox373\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG === $printer->getVerbosity()) { - $printer->printvln('✘ ' . $requirement->getTestMessage(), \HumbugBox373\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG, 'red'); - $printer->printv(' ', \HumbugBox373\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG); + if (\HumbugBox380\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG === $printer->getVerbosity()) { + $printer->printvln('✘ ' . $requirement->getTestMessage(), \HumbugBox380\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG, 'red'); + $printer->printv(' ', \HumbugBox380\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG); $errorMessages[] = $errorMessage; } else { $printer->printv('E', $verbosity, 'red'); @@ -52,14 +52,14 @@ public static function printCheck($checkPassed, \HumbugBox373\KevinGH\Requiremen } continue; } - if (\HumbugBox373\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG === $printer->getVerbosity()) { - $printer->printvln('✔ ' . $requirement->getHelpText(), \HumbugBox373\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG, 'green'); - $printer->printv(' ', \HumbugBox373\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG); + if (\HumbugBox380\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG === $printer->getVerbosity()) { + $printer->printvln('✔ ' . $requirement->getHelpText(), \HumbugBox380\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG, 'green'); + $printer->printv(' ', \HumbugBox380\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG); } else { $printer->printv('.', $verbosity, 'green'); } } - if (\HumbugBox373\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG !== $printer->getVerbosity() && \count($requirements) > 0) { + if (\HumbugBox380\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG !== $printer->getVerbosity() && \count($requirements) > 0) { $printer->printvln('', $verbosity); } if ($requirements->evaluateRequirements()) { @@ -79,9 +79,9 @@ private static function retrieveRequirements() self::$requirementsConfig = __DIR__ . '/../.requirements.php'; } $config = (require self::$requirementsConfig); - $requirements = new \HumbugBox373\KevinGH\RequirementChecker\RequirementCollection(); + $requirements = new \HumbugBox380\KevinGH\RequirementChecker\RequirementCollection(); foreach ($config as $constraint) { - $requirements->addRequirement('php' === $constraint['type'] ? new \HumbugBox373\KevinGH\RequirementChecker\IsPhpVersionFulfilled($constraint['condition']) : new \HumbugBox373\KevinGH\RequirementChecker\IsExtensionFulfilled($constraint['condition']), $constraint['message'], $constraint['helpMessage']); + $requirements->addRequirement('php' === $constraint['type'] ? new \HumbugBox380\KevinGH\RequirementChecker\IsPhpVersionFulfilled($constraint['condition']) : new \HumbugBox380\KevinGH\RequirementChecker\IsExtensionFulfilled($constraint['condition']), $constraint['message'], $constraint['helpMessage']); } return $requirements; } diff --git a/.requirement-checker/src/IO.php b/.requirement-checker/src/IO.php index d9a5e16c2..0a5b304e1 100644 --- a/.requirement-checker/src/IO.php +++ b/.requirement-checker/src/IO.php @@ -1,6 +1,6 @@ requiredPhpVersion); + return \HumbugBox380\Composer\Semver\Semver::satisfies(\sprintf('%d.%d.%d', \PHP_MAJOR_VERSION, \PHP_MINOR_VERSION, \PHP_RELEASE_VERSION), $this->requiredPhpVersion); } } diff --git a/.requirement-checker/src/Printer.php b/.requirement-checker/src/Printer.php index b5b23e473..2d2edb9cb 100644 --- a/.requirement-checker/src/Printer.php +++ b/.requirement-checker/src/Printer.php @@ -1,6 +1,6 @@ getWidth(), 80); } $this->verbosity = $verbosity; @@ -36,7 +36,7 @@ public function title($title, $verbosity, $style = null) $this->printvln(\str_repeat('=', \min(\strlen($title), $this->width)), $verbosity, $style); $this->printvln('', $verbosity, $style); } - public function getRequirementErrorMessage(\HumbugBox373\KevinGH\RequirementChecker\Requirement $requirement) + public function getRequirementErrorMessage(\HumbugBox380\KevinGH\RequirementChecker\Requirement $requirement) { if ($requirement->isFulfilled()) { return null; diff --git a/.requirement-checker/src/Requirement.php b/.requirement-checker/src/Requirement.php index 92f9bdca9..40fa20aeb 100644 --- a/.requirement-checker/src/Requirement.php +++ b/.requirement-checker/src/Requirement.php @@ -1,6 +1,6 @@ requirements); } - public function add(\HumbugBox373\KevinGH\RequirementChecker\Requirement $requirement) + public function add(\HumbugBox380\KevinGH\RequirementChecker\Requirement $requirement) { $this->requirements[] = $requirement; } public function addRequirement($checkIsFulfilled, $testMessage, $helpText) { - $this->add(new \HumbugBox373\KevinGH\RequirementChecker\Requirement($checkIsFulfilled, $testMessage, $helpText)); + $this->add(new \HumbugBox380\KevinGH\RequirementChecker\Requirement($checkIsFulfilled, $testMessage, $helpText)); } public function getRequirements() { @@ -38,7 +38,7 @@ public function getPhpIniPath() } public function evaluateRequirements() { - return \array_reduce($this->requirements, function ($checkPassed, \HumbugBox373\KevinGH\RequirementChecker\Requirement $requirement) { + return \array_reduce($this->requirements, function ($checkPassed, \HumbugBox380\KevinGH\RequirementChecker\Requirement $requirement) { return $checkPassed && $requirement->isFulfilled(); }, \true); } diff --git a/.requirement-checker/src/Terminal.php b/.requirement-checker/src/Terminal.php index bb8275788..e00125396 100644 --- a/.requirement-checker/src/Terminal.php +++ b/.requirement-checker/src/Terminal.php @@ -1,6 +1,6 @@ array('pipe', 'w'), 2 => array('pipe', 'w')); - $process = \proc_open('mode CON', $descriptorspec, $pipes, null, null, array('suppress_errors' => \true)); - if (\is_resource($process)) { - $info = \stream_get_contents($pipes[1]); - \fclose($pipes[1]); - \fclose($pipes[2]); - \proc_close($process); - if (\preg_match('/--------+\\r?\\n.+?(\\d+)\\r?\\n.+?(\\d+)\\r?\\n/', $info, $matches)) { - return array((int) $matches[2], (int) $matches[1]); - } - } - return null; + return array((int) $matches[2], (int) $matches[1]); } private static function getSttyColumns() + { + return self::readFromProcess('stty -a | grep columns'); + } + private static function readFromProcess($command) { if (!\function_exists('proc_open')) { return null; } $descriptorspec = array(1 => array('pipe', 'w'), 2 => array('pipe', 'w')); - $process = \proc_open('stty -a | grep columns', $descriptorspec, $pipes, null, null, array('suppress_errors' => \true)); - if (\is_resource($process)) { - $info = \stream_get_contents($pipes[1]); - \fclose($pipes[1]); - \fclose($pipes[2]); - \proc_close($process); - return $info; + $process = \proc_open($command, $descriptorspec, $pipes, null, null, array('suppress_errors' => \true)); + if (!\is_resource($process)) { + return null; } - return null; + $info = \stream_get_contents($pipes[1]); + \fclose($pipes[1]); + \fclose($pipes[2]); + \proc_close($process); + return $info; } } diff --git a/.requirement-checker/vendor/autoload.php b/.requirement-checker/vendor/autoload.php index aba2dabf7..98b825e89 100644 --- a/.requirement-checker/vendor/autoload.php +++ b/.requirement-checker/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitdbe7d0d11180973b81d79385e3b5d549::getLoader(); +return ComposerAutoloaderInit0d96cc2add98eaac9c2cac2d900e67fe::getLoader(); diff --git a/.requirement-checker/vendor/composer/autoload_classmap.php b/.requirement-checker/vendor/composer/autoload_classmap.php index 8a106c130..4906fd188 100644 --- a/.requirement-checker/vendor/composer/autoload_classmap.php +++ b/.requirement-checker/vendor/composer/autoload_classmap.php @@ -6,21 +6,21 @@ $baseDir = dirname($vendorDir); return array( - 'HumbugBox373\\Composer\\Semver\\Comparator' => $vendorDir . '/composer/semver/src/Comparator.php', - 'HumbugBox373\\Composer\\Semver\\Constraint\\AbstractConstraint' => $vendorDir . '/composer/semver/src/Constraint/AbstractConstraint.php', - 'HumbugBox373\\Composer\\Semver\\Constraint\\Constraint' => $vendorDir . '/composer/semver/src/Constraint/Constraint.php', - 'HumbugBox373\\Composer\\Semver\\Constraint\\ConstraintInterface' => $vendorDir . '/composer/semver/src/Constraint/ConstraintInterface.php', - 'HumbugBox373\\Composer\\Semver\\Constraint\\EmptyConstraint' => $vendorDir . '/composer/semver/src/Constraint/EmptyConstraint.php', - 'HumbugBox373\\Composer\\Semver\\Constraint\\MultiConstraint' => $vendorDir . '/composer/semver/src/Constraint/MultiConstraint.php', - 'HumbugBox373\\Composer\\Semver\\Semver' => $vendorDir . '/composer/semver/src/Semver.php', - 'HumbugBox373\\Composer\\Semver\\VersionParser' => $vendorDir . '/composer/semver/src/VersionParser.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\Checker' => $baseDir . '/src/Checker.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\IO' => $baseDir . '/src/IO.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\IsExtensionFulfilled' => $baseDir . '/src/IsExtensionFulfilled.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\IsFulfilled' => $baseDir . '/src/IsFulfilled.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\IsPhpVersionFulfilled' => $baseDir . '/src/IsPhpVersionFulfilled.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\Printer' => $baseDir . '/src/Printer.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\Requirement' => $baseDir . '/src/Requirement.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\RequirementCollection' => $baseDir . '/src/RequirementCollection.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\Terminal' => $baseDir . '/src/Terminal.php', + 'HumbugBox380\\Composer\\Semver\\Comparator' => $vendorDir . '/composer/semver/src/Comparator.php', + 'HumbugBox380\\Composer\\Semver\\Constraint\\AbstractConstraint' => $vendorDir . '/composer/semver/src/Constraint/AbstractConstraint.php', + 'HumbugBox380\\Composer\\Semver\\Constraint\\Constraint' => $vendorDir . '/composer/semver/src/Constraint/Constraint.php', + 'HumbugBox380\\Composer\\Semver\\Constraint\\ConstraintInterface' => $vendorDir . '/composer/semver/src/Constraint/ConstraintInterface.php', + 'HumbugBox380\\Composer\\Semver\\Constraint\\EmptyConstraint' => $vendorDir . '/composer/semver/src/Constraint/EmptyConstraint.php', + 'HumbugBox380\\Composer\\Semver\\Constraint\\MultiConstraint' => $vendorDir . '/composer/semver/src/Constraint/MultiConstraint.php', + 'HumbugBox380\\Composer\\Semver\\Semver' => $vendorDir . '/composer/semver/src/Semver.php', + 'HumbugBox380\\Composer\\Semver\\VersionParser' => $vendorDir . '/composer/semver/src/VersionParser.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\Checker' => $baseDir . '/src/Checker.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\IO' => $baseDir . '/src/IO.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\IsExtensionFulfilled' => $baseDir . '/src/IsExtensionFulfilled.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\IsFulfilled' => $baseDir . '/src/IsFulfilled.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\IsPhpVersionFulfilled' => $baseDir . '/src/IsPhpVersionFulfilled.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\Printer' => $baseDir . '/src/Printer.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\Requirement' => $baseDir . '/src/Requirement.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\RequirementCollection' => $baseDir . '/src/RequirementCollection.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\Terminal' => $baseDir . '/src/Terminal.php', ); diff --git a/.requirement-checker/vendor/composer/autoload_psr4.php b/.requirement-checker/vendor/composer/autoload_psr4.php index 87f6a9ebd..a62e81395 100644 --- a/.requirement-checker/vendor/composer/autoload_psr4.php +++ b/.requirement-checker/vendor/composer/autoload_psr4.php @@ -6,6 +6,6 @@ $baseDir = dirname($vendorDir); return array( - 'HumbugBox373\\KevinGH\\RequirementChecker\\' => array($baseDir . '/src'), - 'HumbugBox373\\Composer\\Semver\\' => array($vendorDir . '/composer/semver/src'), + 'HumbugBox380\\KevinGH\\RequirementChecker\\' => array($baseDir . '/src'), + 'HumbugBox380\\Composer\\Semver\\' => array($vendorDir . '/composer/semver/src'), ); diff --git a/.requirement-checker/vendor/composer/autoload_real.php b/.requirement-checker/vendor/composer/autoload_real.php index cc2114d76..1b26ba5fc 100644 --- a/.requirement-checker/vendor/composer/autoload_real.php +++ b/.requirement-checker/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitdbe7d0d11180973b81d79385e3b5d549 +class ComposerAutoloaderInit0d96cc2add98eaac9c2cac2d900e67fe { private static $loader; @@ -19,15 +19,15 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInitdbe7d0d11180973b81d79385e3b5d549', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit0d96cc2add98eaac9c2cac2d900e67fe', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInitdbe7d0d11180973b81d79385e3b5d549', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit0d96cc2add98eaac9c2cac2d900e67fe', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInitdbe7d0d11180973b81d79385e3b5d549::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit0d96cc2add98eaac9c2cac2d900e67fe::getInitializer($loader)); } else { $classMap = require __DIR__ . '/autoload_classmap.php'; if ($classMap) { diff --git a/.requirement-checker/vendor/composer/autoload_static.php b/.requirement-checker/vendor/composer/autoload_static.php index ae8cd2c1e..3dcb632e6 100644 --- a/.requirement-checker/vendor/composer/autoload_static.php +++ b/.requirement-checker/vendor/composer/autoload_static.php @@ -4,53 +4,53 @@ namespace Composer\Autoload; -class ComposerStaticInitdbe7d0d11180973b81d79385e3b5d549 +class ComposerStaticInit0d96cc2add98eaac9c2cac2d900e67fe { public static $prefixLengthsPsr4 = array ( 'H' => array ( - 'HumbugBox373\\KevinGH\\RequirementChecker\\' => 40, - 'HumbugBox373\\Composer\\Semver\\' => 29, + 'HumbugBox380\\KevinGH\\RequirementChecker\\' => 40, + 'HumbugBox380\\Composer\\Semver\\' => 29, ), ); public static $prefixDirsPsr4 = array ( - 'HumbugBox373\\KevinGH\\RequirementChecker\\' => + 'HumbugBox380\\KevinGH\\RequirementChecker\\' => array ( 0 => __DIR__ . '/../..' . '/src', ), - 'HumbugBox373\\Composer\\Semver\\' => + 'HumbugBox380\\Composer\\Semver\\' => array ( 0 => __DIR__ . '/..' . '/composer/semver/src', ), ); public static $classMap = array ( - 'HumbugBox373\\Composer\\Semver\\Comparator' => __DIR__ . '/..' . '/composer/semver/src/Comparator.php', - 'HumbugBox373\\Composer\\Semver\\Constraint\\AbstractConstraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/AbstractConstraint.php', - 'HumbugBox373\\Composer\\Semver\\Constraint\\Constraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/Constraint.php', - 'HumbugBox373\\Composer\\Semver\\Constraint\\ConstraintInterface' => __DIR__ . '/..' . '/composer/semver/src/Constraint/ConstraintInterface.php', - 'HumbugBox373\\Composer\\Semver\\Constraint\\EmptyConstraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/EmptyConstraint.php', - 'HumbugBox373\\Composer\\Semver\\Constraint\\MultiConstraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/MultiConstraint.php', - 'HumbugBox373\\Composer\\Semver\\Semver' => __DIR__ . '/..' . '/composer/semver/src/Semver.php', - 'HumbugBox373\\Composer\\Semver\\VersionParser' => __DIR__ . '/..' . '/composer/semver/src/VersionParser.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\Checker' => __DIR__ . '/../..' . '/src/Checker.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\IO' => __DIR__ . '/../..' . '/src/IO.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\IsExtensionFulfilled' => __DIR__ . '/../..' . '/src/IsExtensionFulfilled.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\IsFulfilled' => __DIR__ . '/../..' . '/src/IsFulfilled.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\IsPhpVersionFulfilled' => __DIR__ . '/../..' . '/src/IsPhpVersionFulfilled.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\Printer' => __DIR__ . '/../..' . '/src/Printer.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\Requirement' => __DIR__ . '/../..' . '/src/Requirement.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\RequirementCollection' => __DIR__ . '/../..' . '/src/RequirementCollection.php', - 'HumbugBox373\\KevinGH\\RequirementChecker\\Terminal' => __DIR__ . '/../..' . '/src/Terminal.php', + 'HumbugBox380\\Composer\\Semver\\Comparator' => __DIR__ . '/..' . '/composer/semver/src/Comparator.php', + 'HumbugBox380\\Composer\\Semver\\Constraint\\AbstractConstraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/AbstractConstraint.php', + 'HumbugBox380\\Composer\\Semver\\Constraint\\Constraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/Constraint.php', + 'HumbugBox380\\Composer\\Semver\\Constraint\\ConstraintInterface' => __DIR__ . '/..' . '/composer/semver/src/Constraint/ConstraintInterface.php', + 'HumbugBox380\\Composer\\Semver\\Constraint\\EmptyConstraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/EmptyConstraint.php', + 'HumbugBox380\\Composer\\Semver\\Constraint\\MultiConstraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/MultiConstraint.php', + 'HumbugBox380\\Composer\\Semver\\Semver' => __DIR__ . '/..' . '/composer/semver/src/Semver.php', + 'HumbugBox380\\Composer\\Semver\\VersionParser' => __DIR__ . '/..' . '/composer/semver/src/VersionParser.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\Checker' => __DIR__ . '/../..' . '/src/Checker.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\IO' => __DIR__ . '/../..' . '/src/IO.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\IsExtensionFulfilled' => __DIR__ . '/../..' . '/src/IsExtensionFulfilled.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\IsFulfilled' => __DIR__ . '/../..' . '/src/IsFulfilled.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\IsPhpVersionFulfilled' => __DIR__ . '/../..' . '/src/IsPhpVersionFulfilled.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\Printer' => __DIR__ . '/../..' . '/src/Printer.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\Requirement' => __DIR__ . '/../..' . '/src/Requirement.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\RequirementCollection' => __DIR__ . '/../..' . '/src/RequirementCollection.php', + 'HumbugBox380\\KevinGH\\RequirementChecker\\Terminal' => __DIR__ . '/../..' . '/src/Terminal.php', ); public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitdbe7d0d11180973b81d79385e3b5d549::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitdbe7d0d11180973b81d79385e3b5d549::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInitdbe7d0d11180973b81d79385e3b5d549::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit0d96cc2add98eaac9c2cac2d900e67fe::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit0d96cc2add98eaac9c2cac2d900e67fe::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit0d96cc2add98eaac9c2cac2d900e67fe::$classMap; }, null, ClassLoader::class); } diff --git a/.requirement-checker/vendor/composer/semver/src/Comparator.php b/.requirement-checker/vendor/composer/semver/src/Comparator.php index 5b6415ff7..62d78b69c 100644 --- a/.requirement-checker/vendor/composer/semver/src/Comparator.php +++ b/.requirement-checker/vendor/composer/semver/src/Comparator.php @@ -1,8 +1,8 @@ matches(new \HumbugBox373\Composer\Semver\Constraint\Constraint('==', $version1)); + $constraint = new \HumbugBox380\Composer\Semver\Constraint\Constraint($operator, $version2); + return $constraint->matches(new \HumbugBox380\Composer\Semver\Constraint\Constraint('==', $version1)); } } diff --git a/.requirement-checker/vendor/composer/semver/src/Constraint/AbstractConstraint.php b/.requirement-checker/vendor/composer/semver/src/Constraint/AbstractConstraint.php index 525033cdf..3c9bcb45f 100644 --- a/.requirement-checker/vendor/composer/semver/src/Constraint/AbstractConstraint.php +++ b/.requirement-checker/vendor/composer/semver/src/Constraint/AbstractConstraint.php @@ -1,12 +1,12 @@ matchSpecific($provider); diff --git a/.requirement-checker/vendor/composer/semver/src/Constraint/Constraint.php b/.requirement-checker/vendor/composer/semver/src/Constraint/Constraint.php index 086d99293..87002c325 100644 --- a/.requirement-checker/vendor/composer/semver/src/Constraint/Constraint.php +++ b/.requirement-checker/vendor/composer/semver/src/Constraint/Constraint.php @@ -1,8 +1,8 @@ matchSpecific($provider); @@ -60,7 +60,7 @@ public function versionCompare($a, $b, $operator, $compareBranches = \false) } return \version_compare($a, $b, $operator); } - public function matchSpecific(\HumbugBox373\Composer\Semver\Constraint\Constraint $provider, $compareBranches = \false) + public function matchSpecific(\HumbugBox380\Composer\Semver\Constraint\Constraint $provider, $compareBranches = \false) { $noEqualOp = \str_replace('=', '', self::$transOpInt[$this->operator]); $providerNoEqualOp = \str_replace('=', '', self::$transOpInt[$provider->operator]); diff --git a/.requirement-checker/vendor/composer/semver/src/Constraint/ConstraintInterface.php b/.requirement-checker/vendor/composer/semver/src/Constraint/ConstraintInterface.php index d40150f49..3af3d98c7 100644 --- a/.requirement-checker/vendor/composer/semver/src/Constraint/ConstraintInterface.php +++ b/.requirement-checker/vendor/composer/semver/src/Constraint/ConstraintInterface.php @@ -1,10 +1,10 @@ conjunctive; } - public function matches(\HumbugBox373\Composer\Semver\Constraint\ConstraintInterface $provider) + public function matches(\HumbugBox380\Composer\Semver\Constraint\ConstraintInterface $provider) { if (\false === $this->conjunctive) { foreach ($this->constraints as $constraint) { diff --git a/.requirement-checker/vendor/composer/semver/src/Semver.php b/.requirement-checker/vendor/composer/semver/src/Semver.php index 36217d589..cbf37676c 100644 --- a/.requirement-checker/vendor/composer/semver/src/Semver.php +++ b/.requirement-checker/vendor/composer/semver/src/Semver.php @@ -1,8 +1,8 @@ normalize($version)); + $provider = new \HumbugBox380\Composer\Semver\Constraint\Constraint('==', $versionParser->normalize($version)); $constraints = $versionParser->parseConstraints($constraints); return $constraints->matches($provider); } public static function satisfiedBy(array $versions, $constraints) { $versions = \array_filter($versions, function ($version) use($constraints) { - return \HumbugBox373\Composer\Semver\Semver::satisfies($version, $constraints); + return \HumbugBox380\Composer\Semver\Semver::satisfies($version, $constraints); }); return \array_values($versions); } @@ -36,7 +36,7 @@ public static function rsort(array $versions) private static function usort(array $versions, $direction) { if (null === self::$versionParser) { - self::$versionParser = new \HumbugBox373\Composer\Semver\VersionParser(); + self::$versionParser = new \HumbugBox380\Composer\Semver\VersionParser(); } $versionParser = self::$versionParser; $normalized = array(); @@ -47,7 +47,7 @@ private static function usort(array $versions, $direction) if ($left[0] === $right[0]) { return 0; } - if (\HumbugBox373\Composer\Semver\Comparator::lessThan($left[0], $right[0])) { + if (\HumbugBox380\Composer\Semver\Comparator::lessThan($left[0], $right[0])) { return -$direction; } return $direction; diff --git a/.requirement-checker/vendor/composer/semver/src/VersionParser.php b/.requirement-checker/vendor/composer/semver/src/VersionParser.php index b7528a8be..0044a1a7f 100644 --- a/.requirement-checker/vendor/composer/semver/src/VersionParser.php +++ b/.requirement-checker/vendor/composer/semver/src/VersionParser.php @@ -1,11 +1,11 @@ getConstraints()) && 2 === \count($orGroups[1]->getConstraints()) && ($a = (string) $orGroups[0]) && \substr($a, 0, 3) === '[>=' && \false !== ($posA = \strpos($a, '<', 4)) && ($b = (string) $orGroups[1]) && \substr($b, 0, 3) === '[>=' && \false !== ($posB = \strpos($b, '<', 4)) && \substr($a, $posA + 2, -1) === \substr($b, 4, $posB - 5)) { - $constraint = new \HumbugBox373\Composer\Semver\Constraint\MultiConstraint(array(new \HumbugBox373\Composer\Semver\Constraint\Constraint('>=', \substr($a, 4, $posA - 5)), new \HumbugBox373\Composer\Semver\Constraint\Constraint('<', \substr($b, $posB + 2, -1)))); + } elseif (2 === \count($orGroups) && $orGroups[0] instanceof \HumbugBox380\Composer\Semver\Constraint\MultiConstraint && $orGroups[1] instanceof \HumbugBox380\Composer\Semver\Constraint\MultiConstraint && 2 === \count($orGroups[0]->getConstraints()) && 2 === \count($orGroups[1]->getConstraints()) && ($a = (string) $orGroups[0]) && \substr($a, 0, 3) === '[>=' && \false !== ($posA = \strpos($a, '<', 4)) && ($b = (string) $orGroups[1]) && \substr($b, 0, 3) === '[>=' && \false !== ($posB = \strpos($b, '<', 4)) && \substr($a, $posA + 2, -1) === \substr($b, 4, $posB - 5)) { + $constraint = new \HumbugBox380\Composer\Semver\Constraint\MultiConstraint(array(new \HumbugBox380\Composer\Semver\Constraint\Constraint('>=', \substr($a, 4, $posA - 5)), new \HumbugBox380\Composer\Semver\Constraint\Constraint('<', \substr($b, $posB + 2, -1)))); } else { - $constraint = new \HumbugBox373\Composer\Semver\Constraint\MultiConstraint($orGroups, \false); + $constraint = new \HumbugBox380\Composer\Semver\Constraint\MultiConstraint($orGroups, \false); } $constraint->setPrettyString($prettyConstraint); return $constraint; @@ -160,7 +160,7 @@ private function parseConstraint($constraint) } } if (\preg_match('{^v?[xX*](\\.[xX*])*$}i', $constraint)) { - return array(new \HumbugBox373\Composer\Semver\Constraint\EmptyConstraint()); + return array(new \HumbugBox380\Composer\Semver\Constraint\EmptyConstraint()); } $versionRegex = 'v?(\\d++)(?:\\.(\\d++))?(?:\\.(\\d++))?(?:\\.(\\d++))?' . self::$modifierRegex . '(?:\\+[^\\s]+)?'; if (\preg_match('{^~>?' . $versionRegex . '$}i', $constraint, $matches)) { @@ -181,10 +181,10 @@ private function parseConstraint($constraint) $stabilitySuffix .= '-dev'; } $lowVersion = $this->normalize(\substr($constraint . $stabilitySuffix, 1)); - $lowerBound = new \HumbugBox373\Composer\Semver\Constraint\Constraint('>=', $lowVersion); + $lowerBound = new \HumbugBox380\Composer\Semver\Constraint\Constraint('>=', $lowVersion); $highPosition = \max(1, $position - 1); $highVersion = $this->manipulateVersionString($matches, $highPosition, 1) . '-dev'; - $upperBound = new \HumbugBox373\Composer\Semver\Constraint\Constraint('<', $highVersion); + $upperBound = new \HumbugBox380\Composer\Semver\Constraint\Constraint('<', $highVersion); return array($lowerBound, $upperBound); } if (\preg_match('{^\\^' . $versionRegex . '($)}i', $constraint, $matches)) { @@ -200,9 +200,9 @@ private function parseConstraint($constraint) $stabilitySuffix .= '-dev'; } $lowVersion = $this->normalize(\substr($constraint . $stabilitySuffix, 1)); - $lowerBound = new \HumbugBox373\Composer\Semver\Constraint\Constraint('>=', $lowVersion); + $lowerBound = new \HumbugBox380\Composer\Semver\Constraint\Constraint('>=', $lowVersion); $highVersion = $this->manipulateVersionString($matches, $position, 1) . '-dev'; - $upperBound = new \HumbugBox373\Composer\Semver\Constraint\Constraint('<', $highVersion); + $upperBound = new \HumbugBox380\Composer\Semver\Constraint\Constraint('<', $highVersion); return array($lowerBound, $upperBound); } if (\preg_match('{^v?(\\d++)(?:\\.(\\d++))?(?:\\.(\\d++))?(?:\\.[xX*])++$}', $constraint, $matches)) { @@ -216,9 +216,9 @@ private function parseConstraint($constraint) $lowVersion = $this->manipulateVersionString($matches, $position) . '-dev'; $highVersion = $this->manipulateVersionString($matches, $position, 1) . '-dev'; if ($lowVersion === '0.0.0.0-dev') { - return array(new \HumbugBox373\Composer\Semver\Constraint\Constraint('<', $highVersion)); + return array(new \HumbugBox380\Composer\Semver\Constraint\Constraint('<', $highVersion)); } - return array(new \HumbugBox373\Composer\Semver\Constraint\Constraint('>=', $lowVersion), new \HumbugBox373\Composer\Semver\Constraint\Constraint('<', $highVersion)); + return array(new \HumbugBox380\Composer\Semver\Constraint\Constraint('>=', $lowVersion), new \HumbugBox380\Composer\Semver\Constraint\Constraint('<', $highVersion)); } if (\preg_match('{^(?P' . $versionRegex . ') +- +(?P' . $versionRegex . ')($)}i', $constraint, $matches)) { $lowStabilitySuffix = ''; @@ -226,17 +226,17 @@ private function parseConstraint($constraint) $lowStabilitySuffix = '-dev'; } $lowVersion = $this->normalize($matches['from']); - $lowerBound = new \HumbugBox373\Composer\Semver\Constraint\Constraint('>=', $lowVersion . $lowStabilitySuffix); + $lowerBound = new \HumbugBox380\Composer\Semver\Constraint\Constraint('>=', $lowVersion . $lowStabilitySuffix); $empty = function ($x) { return $x === 0 || $x === '0' ? \false : empty($x); }; if (!$empty($matches[11]) && !$empty($matches[12]) || !empty($matches[14]) || !empty($matches[16])) { $highVersion = $this->normalize($matches['to']); - $upperBound = new \HumbugBox373\Composer\Semver\Constraint\Constraint('<=', $highVersion); + $upperBound = new \HumbugBox380\Composer\Semver\Constraint\Constraint('<=', $highVersion); } else { $highMatch = array('', $matches[10], $matches[11], $matches[12], $matches[13]); $highVersion = $this->manipulateVersionString($highMatch, $empty($matches[11]) ? 1 : 2, 1) . '-dev'; - $upperBound = new \HumbugBox373\Composer\Semver\Constraint\Constraint('<', $highVersion); + $upperBound = new \HumbugBox380\Composer\Semver\Constraint\Constraint('<', $highVersion); } return array($lowerBound, $upperBound); } @@ -252,7 +252,7 @@ private function parseConstraint($constraint) } } } - return array(new \HumbugBox373\Composer\Semver\Constraint\Constraint($matches[1] ?: '=', $version)); + return array(new \HumbugBox380\Composer\Semver\Constraint\Constraint($matches[1] ?: '=', $version)); } catch (\Exception $e) { } }