diff --git a/.requirement-checker/bin/check-requirements.php b/.requirement-checker/bin/check-requirements.php index 779fb87b3..967492955 100644 --- a/.requirement-checker/bin/check-requirements.php +++ b/.requirement-checker/bin/check-requirements.php @@ -1,12 +1,12 @@ evaluateRequirements(); - $io = new \HumbugBox372\KevinGH\RequirementChecker\IO(); - self::printCheck($checkPassed, new \HumbugBox372\KevinGH\RequirementChecker\Printer($io->getVerbosity(), $io->hasColorSupport()), $requirements); + $io = new \HumbugBox373\KevinGH\RequirementChecker\IO(); + self::printCheck($checkPassed, new \HumbugBox373\KevinGH\RequirementChecker\Printer($io->getVerbosity(), $io->hasColorSupport()), $requirements); return $checkPassed; } - public static function printCheck($checkPassed, \HumbugBox372\KevinGH\RequirementChecker\Printer $printer, \HumbugBox372\KevinGH\RequirementChecker\RequirementCollection $requirements) + public static function printCheck($checkPassed, \HumbugBox373\KevinGH\RequirementChecker\Printer $printer, \HumbugBox373\KevinGH\RequirementChecker\RequirementCollection $requirements) { - if (\false === $checkPassed && \HumbugBox372\KevinGH\RequirementChecker\IO::VERBOSITY_VERY_VERBOSE > $printer->getVerbosity()) { - $printer->setVerbosity(\HumbugBox372\KevinGH\RequirementChecker\IO::VERBOSITY_VERY_VERBOSE); + if (\false === $checkPassed && \HumbugBox373\KevinGH\RequirementChecker\IO::VERBOSITY_VERY_VERBOSE > $printer->getVerbosity()) { + $printer->setVerbosity(\HumbugBox373\KevinGH\RequirementChecker\IO::VERBOSITY_VERY_VERBOSE); } - $verbosity = \HumbugBox372\KevinGH\RequirementChecker\IO::VERBOSITY_VERY_VERBOSE; + $verbosity = \HumbugBox373\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, \HumbugBox372\KevinGH\Requiremen $errorMessages = array(); foreach ($requirements->getRequirements() as $requirement) { if ($errorMessage = $printer->getRequirementErrorMessage($requirement)) { - if (\HumbugBox372\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG === $printer->getVerbosity()) { - $printer->printvln('✘ ' . $requirement->getTestMessage(), \HumbugBox372\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG, 'red'); - $printer->printv(' ', \HumbugBox372\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG); + 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); $errorMessages[] = $errorMessage; } else { $printer->printv('E', $verbosity, 'red'); @@ -52,14 +52,14 @@ public static function printCheck($checkPassed, \HumbugBox372\KevinGH\Requiremen } continue; } - if (\HumbugBox372\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG === $printer->getVerbosity()) { - $printer->printvln('✔ ' . $requirement->getHelpText(), \HumbugBox372\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG, 'green'); - $printer->printv(' ', \HumbugBox372\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG); + 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); } else { $printer->printv('.', $verbosity, 'green'); } } - if (\HumbugBox372\KevinGH\RequirementChecker\IO::VERBOSITY_DEBUG !== $printer->getVerbosity() && \count($requirements) > 0) { + if (\HumbugBox373\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 \HumbugBox372\KevinGH\RequirementChecker\RequirementCollection(); + $requirements = new \HumbugBox373\KevinGH\RequirementChecker\RequirementCollection(); foreach ($config as $constraint) { - $requirements->addRequirement('php' === $constraint['type'] ? new \HumbugBox372\KevinGH\RequirementChecker\IsPhpVersionFulfilled($constraint['condition']) : new \HumbugBox372\KevinGH\RequirementChecker\IsExtensionFulfilled($constraint['condition']), $constraint['message'], $constraint['helpMessage']); + $requirements->addRequirement('php' === $constraint['type'] ? new \HumbugBox373\KevinGH\RequirementChecker\IsPhpVersionFulfilled($constraint['condition']) : new \HumbugBox373\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 07d7de70a..d9a5e16c2 100644 --- a/.requirement-checker/src/IO.php +++ b/.requirement-checker/src/IO.php @@ -1,6 +1,6 @@ requiredPhpVersion); + return \HumbugBox373\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 08c2527a0..b5b23e473 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(\HumbugBox372\KevinGH\RequirementChecker\Requirement $requirement) + public function getRequirementErrorMessage(\HumbugBox373\KevinGH\RequirementChecker\Requirement $requirement) { if ($requirement->isFulfilled()) { return null; diff --git a/.requirement-checker/src/Requirement.php b/.requirement-checker/src/Requirement.php index 5457d95e4..92f9bdca9 100644 --- a/.requirement-checker/src/Requirement.php +++ b/.requirement-checker/src/Requirement.php @@ -1,6 +1,6 @@ requirements); } - public function add(\HumbugBox372\KevinGH\RequirementChecker\Requirement $requirement) + public function add(\HumbugBox373\KevinGH\RequirementChecker\Requirement $requirement) { $this->requirements[] = $requirement; } public function addRequirement($checkIsFulfilled, $testMessage, $helpText) { - $this->add(new \HumbugBox372\KevinGH\RequirementChecker\Requirement($checkIsFulfilled, $testMessage, $helpText)); + $this->add(new \HumbugBox373\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, \HumbugBox372\KevinGH\RequirementChecker\Requirement $requirement) { + return \array_reduce($this->requirements, function ($checkPassed, \HumbugBox373\KevinGH\RequirementChecker\Requirement $requirement) { return $checkPassed && $requirement->isFulfilled(); }, \true); } diff --git a/.requirement-checker/src/Terminal.php b/.requirement-checker/src/Terminal.php index 93630d193..bb8275788 100644 --- a/.requirement-checker/src/Terminal.php +++ b/.requirement-checker/src/Terminal.php @@ -1,6 +1,6 @@ $vendorDir . '/composer/semver/src/Comparator.php', - 'HumbugBox372\\Composer\\Semver\\Constraint\\AbstractConstraint' => $vendorDir . '/composer/semver/src/Constraint/AbstractConstraint.php', - 'HumbugBox372\\Composer\\Semver\\Constraint\\Constraint' => $vendorDir . '/composer/semver/src/Constraint/Constraint.php', - 'HumbugBox372\\Composer\\Semver\\Constraint\\ConstraintInterface' => $vendorDir . '/composer/semver/src/Constraint/ConstraintInterface.php', - 'HumbugBox372\\Composer\\Semver\\Constraint\\EmptyConstraint' => $vendorDir . '/composer/semver/src/Constraint/EmptyConstraint.php', - 'HumbugBox372\\Composer\\Semver\\Constraint\\MultiConstraint' => $vendorDir . '/composer/semver/src/Constraint/MultiConstraint.php', - 'HumbugBox372\\Composer\\Semver\\Semver' => $vendorDir . '/composer/semver/src/Semver.php', - 'HumbugBox372\\Composer\\Semver\\VersionParser' => $vendorDir . '/composer/semver/src/VersionParser.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\Checker' => $baseDir . '/src/Checker.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\IO' => $baseDir . '/src/IO.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\IsExtensionFulfilled' => $baseDir . '/src/IsExtensionFulfilled.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\IsFulfilled' => $baseDir . '/src/IsFulfilled.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\IsPhpVersionFulfilled' => $baseDir . '/src/IsPhpVersionFulfilled.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\Printer' => $baseDir . '/src/Printer.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\Requirement' => $baseDir . '/src/Requirement.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\RequirementCollection' => $baseDir . '/src/RequirementCollection.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\Terminal' => $baseDir . '/src/Terminal.php', + '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', ); diff --git a/.requirement-checker/vendor/composer/autoload_psr4.php b/.requirement-checker/vendor/composer/autoload_psr4.php index 9baa72f4f..87f6a9ebd 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( - 'HumbugBox372\\KevinGH\\RequirementChecker\\' => array($baseDir . '/src'), - 'HumbugBox372\\Composer\\Semver\\' => array($vendorDir . '/composer/semver/src'), + 'HumbugBox373\\KevinGH\\RequirementChecker\\' => array($baseDir . '/src'), + 'HumbugBox373\\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 cb0ee6724..cc2114d76 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 ComposerAutoloaderInit8b58992d179d0afdbc92988c084b4eef +class ComposerAutoloaderInitdbe7d0d11180973b81d79385e3b5d549 { private static $loader; @@ -19,15 +19,15 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit8b58992d179d0afdbc92988c084b4eef', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInitdbe7d0d11180973b81d79385e3b5d549', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInit8b58992d179d0afdbc92988c084b4eef', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInitdbe7d0d11180973b81d79385e3b5d549', '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\ComposerStaticInit8b58992d179d0afdbc92988c084b4eef::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInitdbe7d0d11180973b81d79385e3b5d549::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 5d5680580..ae8cd2c1e 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 ComposerStaticInit8b58992d179d0afdbc92988c084b4eef +class ComposerStaticInitdbe7d0d11180973b81d79385e3b5d549 { public static $prefixLengthsPsr4 = array ( 'H' => array ( - 'HumbugBox372\\KevinGH\\RequirementChecker\\' => 40, - 'HumbugBox372\\Composer\\Semver\\' => 29, + 'HumbugBox373\\KevinGH\\RequirementChecker\\' => 40, + 'HumbugBox373\\Composer\\Semver\\' => 29, ), ); public static $prefixDirsPsr4 = array ( - 'HumbugBox372\\KevinGH\\RequirementChecker\\' => + 'HumbugBox373\\KevinGH\\RequirementChecker\\' => array ( 0 => __DIR__ . '/../..' . '/src', ), - 'HumbugBox372\\Composer\\Semver\\' => + 'HumbugBox373\\Composer\\Semver\\' => array ( 0 => __DIR__ . '/..' . '/composer/semver/src', ), ); public static $classMap = array ( - 'HumbugBox372\\Composer\\Semver\\Comparator' => __DIR__ . '/..' . '/composer/semver/src/Comparator.php', - 'HumbugBox372\\Composer\\Semver\\Constraint\\AbstractConstraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/AbstractConstraint.php', - 'HumbugBox372\\Composer\\Semver\\Constraint\\Constraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/Constraint.php', - 'HumbugBox372\\Composer\\Semver\\Constraint\\ConstraintInterface' => __DIR__ . '/..' . '/composer/semver/src/Constraint/ConstraintInterface.php', - 'HumbugBox372\\Composer\\Semver\\Constraint\\EmptyConstraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/EmptyConstraint.php', - 'HumbugBox372\\Composer\\Semver\\Constraint\\MultiConstraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/MultiConstraint.php', - 'HumbugBox372\\Composer\\Semver\\Semver' => __DIR__ . '/..' . '/composer/semver/src/Semver.php', - 'HumbugBox372\\Composer\\Semver\\VersionParser' => __DIR__ . '/..' . '/composer/semver/src/VersionParser.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\Checker' => __DIR__ . '/../..' . '/src/Checker.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\IO' => __DIR__ . '/../..' . '/src/IO.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\IsExtensionFulfilled' => __DIR__ . '/../..' . '/src/IsExtensionFulfilled.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\IsFulfilled' => __DIR__ . '/../..' . '/src/IsFulfilled.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\IsPhpVersionFulfilled' => __DIR__ . '/../..' . '/src/IsPhpVersionFulfilled.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\Printer' => __DIR__ . '/../..' . '/src/Printer.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\Requirement' => __DIR__ . '/../..' . '/src/Requirement.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\RequirementCollection' => __DIR__ . '/../..' . '/src/RequirementCollection.php', - 'HumbugBox372\\KevinGH\\RequirementChecker\\Terminal' => __DIR__ . '/../..' . '/src/Terminal.php', + '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', ); public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit8b58992d179d0afdbc92988c084b4eef::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit8b58992d179d0afdbc92988c084b4eef::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit8b58992d179d0afdbc92988c084b4eef::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInitdbe7d0d11180973b81d79385e3b5d549::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitdbe7d0d11180973b81d79385e3b5d549::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInitdbe7d0d11180973b81d79385e3b5d549::$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 0b2555f9e..5b6415ff7 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 \HumbugBox372\Composer\Semver\Constraint\Constraint('==', $version1)); + $constraint = new \HumbugBox373\Composer\Semver\Constraint\Constraint($operator, $version2); + return $constraint->matches(new \HumbugBox373\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 1d1415472..525033cdf 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 65ada84fe..086d99293 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(\HumbugBox372\Composer\Semver\Constraint\Constraint $provider, $compareBranches = \false) + public function matchSpecific(\HumbugBox373\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 091f5efdb..d40150f49 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(\HumbugBox372\Composer\Semver\Constraint\ConstraintInterface $provider) + public function matches(\HumbugBox373\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 5b0a05da8..36217d589 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 \HumbugBox373\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 \HumbugBox372\Composer\Semver\Semver::satisfies($version, $constraints); + return \HumbugBox373\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 \HumbugBox372\Composer\Semver\VersionParser(); + self::$versionParser = new \HumbugBox373\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 (\HumbugBox372\Composer\Semver\Comparator::lessThan($left[0], $right[0])) { + if (\HumbugBox373\Composer\Semver\Comparator::lessThan($left[0], $right[0])) { return -$direction; } return $direction; @@ -59,4 +59,3 @@ private static function usort(array $versions, $direction) return $sorted; } } -\class_alias('HumbugBox372\\Composer\\Semver\\Semver', 'Composer\\Semver\\Semver', \false); diff --git a/.requirement-checker/vendor/composer/semver/src/VersionParser.php b/.requirement-checker/vendor/composer/semver/src/VersionParser.php index 0acdec831..b7528a8be 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 \HumbugBox372\Composer\Semver\Constraint\MultiConstraint(array(new \HumbugBox372\Composer\Semver\Constraint\Constraint('>=', \substr($a, 4, $posA - 5)), new \HumbugBox372\Composer\Semver\Constraint\Constraint('<', \substr($b, $posB + 2, -1)))); + } elseif (2 === \count($orGroups) && $orGroups[0] instanceof \HumbugBox373\Composer\Semver\Constraint\MultiConstraint && $orGroups[1] instanceof \HumbugBox373\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 \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)))); } else { - $constraint = new \HumbugBox372\Composer\Semver\Constraint\MultiConstraint($orGroups, \false); + $constraint = new \HumbugBox373\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 \HumbugBox372\Composer\Semver\Constraint\EmptyConstraint()); + return array(new \HumbugBox373\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 \HumbugBox372\Composer\Semver\Constraint\Constraint('>=', $lowVersion); + $lowerBound = new \HumbugBox373\Composer\Semver\Constraint\Constraint('>=', $lowVersion); $highPosition = \max(1, $position - 1); $highVersion = $this->manipulateVersionString($matches, $highPosition, 1) . '-dev'; - $upperBound = new \HumbugBox372\Composer\Semver\Constraint\Constraint('<', $highVersion); + $upperBound = new \HumbugBox373\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 \HumbugBox372\Composer\Semver\Constraint\Constraint('>=', $lowVersion); + $lowerBound = new \HumbugBox373\Composer\Semver\Constraint\Constraint('>=', $lowVersion); $highVersion = $this->manipulateVersionString($matches, $position, 1) . '-dev'; - $upperBound = new \HumbugBox372\Composer\Semver\Constraint\Constraint('<', $highVersion); + $upperBound = new \HumbugBox373\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 \HumbugBox372\Composer\Semver\Constraint\Constraint('<', $highVersion)); + return array(new \HumbugBox373\Composer\Semver\Constraint\Constraint('<', $highVersion)); } - return array(new \HumbugBox372\Composer\Semver\Constraint\Constraint('>=', $lowVersion), new \HumbugBox372\Composer\Semver\Constraint\Constraint('<', $highVersion)); + return array(new \HumbugBox373\Composer\Semver\Constraint\Constraint('>=', $lowVersion), new \HumbugBox373\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 \HumbugBox372\Composer\Semver\Constraint\Constraint('>=', $lowVersion . $lowStabilitySuffix); + $lowerBound = new \HumbugBox373\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 \HumbugBox372\Composer\Semver\Constraint\Constraint('<=', $highVersion); + $upperBound = new \HumbugBox373\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 \HumbugBox372\Composer\Semver\Constraint\Constraint('<', $highVersion); + $upperBound = new \HumbugBox373\Composer\Semver\Constraint\Constraint('<', $highVersion); } return array($lowerBound, $upperBound); } @@ -252,7 +252,7 @@ private function parseConstraint($constraint) } } } - return array(new \HumbugBox372\Composer\Semver\Constraint\Constraint($matches[1] ?: '=', $version)); + return array(new \HumbugBox373\Composer\Semver\Constraint\Constraint($matches[1] ?: '=', $version)); } catch (\Exception $e) { } }