Skip to content

Commit

Permalink
build: Update the RequirementChecker (#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Mar 2, 2023
1 parent f71e30c commit a3d8cc4
Show file tree
Hide file tree
Showing 30 changed files with 103 additions and 103 deletions.
2 changes: 1 addition & 1 deletion res/requirement-checker/bin/check-requirements.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace HumbugBox420\KevinGH\RequirementChecker;
namespace HumbugBox431\KevinGH\RequirementChecker;

if (isset($_SERVER['BOX_REQUIREMENT_CHECKER'])) {
$enableRequirementChecker = $_SERVER['BOX_REQUIREMENT_CHECKER'];
Expand Down
2 changes: 1 addition & 1 deletion res/requirement-checker/src/Checker.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace HumbugBox420\KevinGH\RequirementChecker;
namespace HumbugBox431\KevinGH\RequirementChecker;

use InvalidArgumentException;
use function count;
Expand Down
2 changes: 1 addition & 1 deletion res/requirement-checker/src/IO.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace HumbugBox420\KevinGH\RequirementChecker;
namespace HumbugBox431\KevinGH\RequirementChecker;

use function fstat;
use function function_exists;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace HumbugBox420\KevinGH\RequirementChecker;
namespace HumbugBox431\KevinGH\RequirementChecker;

use function extension_loaded;
final class IsExtensionConflictFulfilled implements IsFulfilled
Expand Down
2 changes: 1 addition & 1 deletion res/requirement-checker/src/IsExtensionFulfilled.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace HumbugBox420\KevinGH\RequirementChecker;
namespace HumbugBox431\KevinGH\RequirementChecker;

use function extension_loaded;
final class IsExtensionFulfilled implements IsFulfilled
Expand Down
2 changes: 1 addition & 1 deletion res/requirement-checker/src/IsFulfilled.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace HumbugBox420\KevinGH\RequirementChecker;
namespace HumbugBox431\KevinGH\RequirementChecker;

interface IsFulfilled
{
Expand Down
4 changes: 2 additions & 2 deletions res/requirement-checker/src/IsPhpVersionFulfilled.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

declare (strict_types=1);
namespace HumbugBox420\KevinGH\RequirementChecker;
namespace HumbugBox431\KevinGH\RequirementChecker;

use HumbugBox420\Composer\Semver\Semver;
use HumbugBox431\Composer\Semver\Semver;
use function sprintf;
use const PHP_MAJOR_VERSION;
use const PHP_MINOR_VERSION;
Expand Down
2 changes: 1 addition & 1 deletion res/requirement-checker/src/Printer.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace HumbugBox420\KevinGH\RequirementChecker;
namespace HumbugBox431\KevinGH\RequirementChecker;

use function array_shift;
use function count;
Expand Down
2 changes: 1 addition & 1 deletion res/requirement-checker/src/Requirement.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace HumbugBox420\KevinGH\RequirementChecker;
namespace HumbugBox431\KevinGH\RequirementChecker;

final class Requirement
{
Expand Down
2 changes: 1 addition & 1 deletion res/requirement-checker/src/RequirementCollection.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace HumbugBox420\KevinGH\RequirementChecker;
namespace HumbugBox431\KevinGH\RequirementChecker;

use ArrayIterator;
use Countable;
Expand Down
2 changes: 1 addition & 1 deletion res/requirement-checker/src/Terminal.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace HumbugBox420\KevinGH\RequirementChecker;
namespace HumbugBox431\KevinGH\RequirementChecker;

use function exec;
use function fclose;
Expand Down
2 changes: 1 addition & 1 deletion res/requirement-checker/vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitHumbugBox420::getLoader();
return ComposerAutoloaderInitHumbugBox431::getLoader();
8 changes: 4 additions & 4 deletions res/requirement-checker/vendor/composer/InstalledVersions.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace HumbugBox420\Composer;
namespace HumbugBox431\Composer;

use HumbugBox420\Composer\Autoload\ClassLoader;
use HumbugBox420\Composer\Semver\VersionParser;
use HumbugBox431\Composer\Autoload\ClassLoader;
use HumbugBox431\Composer\Semver\VersionParser;
class InstalledVersions
{
/**
Expand Down Expand Up @@ -175,7 +175,7 @@ public static function reload($data)
private static function getInstalled()
{
if (null === self::$canGetVendors) {
self::$canGetVendors = \method_exists('HumbugBox420\\Composer\\Autoload\\ClassLoader', 'getRegisteredLoaders');
self::$canGetVendors = \method_exists('HumbugBox431\\Composer\\Autoload\\ClassLoader', 'getRegisteredLoaders');
}
$installed = array();
if (self::$canGetVendors) {
Expand Down
44 changes: 22 additions & 22 deletions res/requirement-checker/vendor/composer/autoload_classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@

return array(
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
'HumbugBox420\\Composer\\Semver\\Comparator' => $vendorDir . '/composer/semver/src/Comparator.php',
'HumbugBox420\\Composer\\Semver\\CompilingMatcher' => $vendorDir . '/composer/semver/src/CompilingMatcher.php',
'HumbugBox420\\Composer\\Semver\\Constraint\\Bound' => $vendorDir . '/composer/semver/src/Constraint/Bound.php',
'HumbugBox420\\Composer\\Semver\\Constraint\\Constraint' => $vendorDir . '/composer/semver/src/Constraint/Constraint.php',
'HumbugBox420\\Composer\\Semver\\Constraint\\ConstraintInterface' => $vendorDir . '/composer/semver/src/Constraint/ConstraintInterface.php',
'HumbugBox420\\Composer\\Semver\\Constraint\\MatchAllConstraint' => $vendorDir . '/composer/semver/src/Constraint/MatchAllConstraint.php',
'HumbugBox420\\Composer\\Semver\\Constraint\\MatchNoneConstraint' => $vendorDir . '/composer/semver/src/Constraint/MatchNoneConstraint.php',
'HumbugBox420\\Composer\\Semver\\Constraint\\MultiConstraint' => $vendorDir . '/composer/semver/src/Constraint/MultiConstraint.php',
'HumbugBox420\\Composer\\Semver\\Interval' => $vendorDir . '/composer/semver/src/Interval.php',
'HumbugBox420\\Composer\\Semver\\Intervals' => $vendorDir . '/composer/semver/src/Intervals.php',
'HumbugBox420\\Composer\\Semver\\Semver' => $vendorDir . '/composer/semver/src/Semver.php',
'HumbugBox420\\Composer\\Semver\\VersionParser' => $vendorDir . '/composer/semver/src/VersionParser.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\Checker' => $baseDir . '/src/Checker.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\IO' => $baseDir . '/src/IO.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\IsExtensionConflictFulfilled' => $baseDir . '/src/IsExtensionConflictFulfilled.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\IsExtensionFulfilled' => $baseDir . '/src/IsExtensionFulfilled.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\IsFulfilled' => $baseDir . '/src/IsFulfilled.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\IsPhpVersionFulfilled' => $baseDir . '/src/IsPhpVersionFulfilled.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\Printer' => $baseDir . '/src/Printer.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\Requirement' => $baseDir . '/src/Requirement.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\RequirementCollection' => $baseDir . '/src/RequirementCollection.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\Terminal' => $baseDir . '/src/Terminal.php',
'HumbugBox431\\Composer\\Semver\\Comparator' => $vendorDir . '/composer/semver/src/Comparator.php',
'HumbugBox431\\Composer\\Semver\\CompilingMatcher' => $vendorDir . '/composer/semver/src/CompilingMatcher.php',
'HumbugBox431\\Composer\\Semver\\Constraint\\Bound' => $vendorDir . '/composer/semver/src/Constraint/Bound.php',
'HumbugBox431\\Composer\\Semver\\Constraint\\Constraint' => $vendorDir . '/composer/semver/src/Constraint/Constraint.php',
'HumbugBox431\\Composer\\Semver\\Constraint\\ConstraintInterface' => $vendorDir . '/composer/semver/src/Constraint/ConstraintInterface.php',
'HumbugBox431\\Composer\\Semver\\Constraint\\MatchAllConstraint' => $vendorDir . '/composer/semver/src/Constraint/MatchAllConstraint.php',
'HumbugBox431\\Composer\\Semver\\Constraint\\MatchNoneConstraint' => $vendorDir . '/composer/semver/src/Constraint/MatchNoneConstraint.php',
'HumbugBox431\\Composer\\Semver\\Constraint\\MultiConstraint' => $vendorDir . '/composer/semver/src/Constraint/MultiConstraint.php',
'HumbugBox431\\Composer\\Semver\\Interval' => $vendorDir . '/composer/semver/src/Interval.php',
'HumbugBox431\\Composer\\Semver\\Intervals' => $vendorDir . '/composer/semver/src/Intervals.php',
'HumbugBox431\\Composer\\Semver\\Semver' => $vendorDir . '/composer/semver/src/Semver.php',
'HumbugBox431\\Composer\\Semver\\VersionParser' => $vendorDir . '/composer/semver/src/VersionParser.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\Checker' => $baseDir . '/src/Checker.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\IO' => $baseDir . '/src/IO.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\IsExtensionConflictFulfilled' => $baseDir . '/src/IsExtensionConflictFulfilled.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\IsExtensionFulfilled' => $baseDir . '/src/IsExtensionFulfilled.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\IsFulfilled' => $baseDir . '/src/IsFulfilled.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\IsPhpVersionFulfilled' => $baseDir . '/src/IsPhpVersionFulfilled.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\Printer' => $baseDir . '/src/Printer.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\Requirement' => $baseDir . '/src/Requirement.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\RequirementCollection' => $baseDir . '/src/RequirementCollection.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\Terminal' => $baseDir . '/src/Terminal.php',
);
4 changes: 2 additions & 2 deletions res/requirement-checker/vendor/composer/autoload_psr4.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
$baseDir = dirname($vendorDir);

return array(
'HumbugBox420\\KevinGH\\RequirementChecker\\' => array($baseDir . '/src'),
'HumbugBox420\\Composer\\Semver\\' => array($vendorDir . '/composer/semver/src'),
'HumbugBox431\\KevinGH\\RequirementChecker\\' => array($baseDir . '/src'),
'HumbugBox431\\Composer\\Semver\\' => array($vendorDir . '/composer/semver/src'),
);
8 changes: 4 additions & 4 deletions res/requirement-checker/vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInitHumbugBox420
class ComposerAutoloaderInitHumbugBox431
{
private static $loader;

Expand All @@ -22,12 +22,12 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInitHumbugBox420', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitHumbugBox431', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitHumbugBox420', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitHumbugBox431', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitHumbugBox420::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitHumbugBox431::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);
Expand Down
60 changes: 30 additions & 30 deletions res/requirement-checker/vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,59 +4,59 @@

namespace Composer\Autoload;

class ComposerStaticInitHumbugBox420
class ComposerStaticInitHumbugBox431
{
public static $prefixLengthsPsr4 = array (
'H' =>
array (
'HumbugBox420\\KevinGH\\RequirementChecker\\' => 40,
'HumbugBox420\\Composer\\Semver\\' => 29,
'HumbugBox431\\KevinGH\\RequirementChecker\\' => 40,
'HumbugBox431\\Composer\\Semver\\' => 29,
),
);

public static $prefixDirsPsr4 = array (
'HumbugBox420\\KevinGH\\RequirementChecker\\' =>
'HumbugBox431\\KevinGH\\RequirementChecker\\' =>
array (
0 => __DIR__ . '/../..' . '/src',
),
'HumbugBox420\\Composer\\Semver\\' =>
'HumbugBox431\\Composer\\Semver\\' =>
array (
0 => __DIR__ . '/..' . '/composer/semver/src',
),
);

public static $classMap = array (
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
'HumbugBox420\\Composer\\Semver\\Comparator' => __DIR__ . '/..' . '/composer/semver/src/Comparator.php',
'HumbugBox420\\Composer\\Semver\\CompilingMatcher' => __DIR__ . '/..' . '/composer/semver/src/CompilingMatcher.php',
'HumbugBox420\\Composer\\Semver\\Constraint\\Bound' => __DIR__ . '/..' . '/composer/semver/src/Constraint/Bound.php',
'HumbugBox420\\Composer\\Semver\\Constraint\\Constraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/Constraint.php',
'HumbugBox420\\Composer\\Semver\\Constraint\\ConstraintInterface' => __DIR__ . '/..' . '/composer/semver/src/Constraint/ConstraintInterface.php',
'HumbugBox420\\Composer\\Semver\\Constraint\\MatchAllConstraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/MatchAllConstraint.php',
'HumbugBox420\\Composer\\Semver\\Constraint\\MatchNoneConstraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/MatchNoneConstraint.php',
'HumbugBox420\\Composer\\Semver\\Constraint\\MultiConstraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/MultiConstraint.php',
'HumbugBox420\\Composer\\Semver\\Interval' => __DIR__ . '/..' . '/composer/semver/src/Interval.php',
'HumbugBox420\\Composer\\Semver\\Intervals' => __DIR__ . '/..' . '/composer/semver/src/Intervals.php',
'HumbugBox420\\Composer\\Semver\\Semver' => __DIR__ . '/..' . '/composer/semver/src/Semver.php',
'HumbugBox420\\Composer\\Semver\\VersionParser' => __DIR__ . '/..' . '/composer/semver/src/VersionParser.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\Checker' => __DIR__ . '/../..' . '/src/Checker.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\IO' => __DIR__ . '/../..' . '/src/IO.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\IsExtensionConflictFulfilled' => __DIR__ . '/../..' . '/src/IsExtensionConflictFulfilled.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\IsExtensionFulfilled' => __DIR__ . '/../..' . '/src/IsExtensionFulfilled.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\IsFulfilled' => __DIR__ . '/../..' . '/src/IsFulfilled.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\IsPhpVersionFulfilled' => __DIR__ . '/../..' . '/src/IsPhpVersionFulfilled.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\Printer' => __DIR__ . '/../..' . '/src/Printer.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\Requirement' => __DIR__ . '/../..' . '/src/Requirement.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\RequirementCollection' => __DIR__ . '/../..' . '/src/RequirementCollection.php',
'HumbugBox420\\KevinGH\\RequirementChecker\\Terminal' => __DIR__ . '/../..' . '/src/Terminal.php',
'HumbugBox431\\Composer\\Semver\\Comparator' => __DIR__ . '/..' . '/composer/semver/src/Comparator.php',
'HumbugBox431\\Composer\\Semver\\CompilingMatcher' => __DIR__ . '/..' . '/composer/semver/src/CompilingMatcher.php',
'HumbugBox431\\Composer\\Semver\\Constraint\\Bound' => __DIR__ . '/..' . '/composer/semver/src/Constraint/Bound.php',
'HumbugBox431\\Composer\\Semver\\Constraint\\Constraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/Constraint.php',
'HumbugBox431\\Composer\\Semver\\Constraint\\ConstraintInterface' => __DIR__ . '/..' . '/composer/semver/src/Constraint/ConstraintInterface.php',
'HumbugBox431\\Composer\\Semver\\Constraint\\MatchAllConstraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/MatchAllConstraint.php',
'HumbugBox431\\Composer\\Semver\\Constraint\\MatchNoneConstraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/MatchNoneConstraint.php',
'HumbugBox431\\Composer\\Semver\\Constraint\\MultiConstraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/MultiConstraint.php',
'HumbugBox431\\Composer\\Semver\\Interval' => __DIR__ . '/..' . '/composer/semver/src/Interval.php',
'HumbugBox431\\Composer\\Semver\\Intervals' => __DIR__ . '/..' . '/composer/semver/src/Intervals.php',
'HumbugBox431\\Composer\\Semver\\Semver' => __DIR__ . '/..' . '/composer/semver/src/Semver.php',
'HumbugBox431\\Composer\\Semver\\VersionParser' => __DIR__ . '/..' . '/composer/semver/src/VersionParser.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\Checker' => __DIR__ . '/../..' . '/src/Checker.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\IO' => __DIR__ . '/../..' . '/src/IO.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\IsExtensionConflictFulfilled' => __DIR__ . '/../..' . '/src/IsExtensionConflictFulfilled.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\IsExtensionFulfilled' => __DIR__ . '/../..' . '/src/IsExtensionFulfilled.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\IsFulfilled' => __DIR__ . '/../..' . '/src/IsFulfilled.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\IsPhpVersionFulfilled' => __DIR__ . '/../..' . '/src/IsPhpVersionFulfilled.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\Printer' => __DIR__ . '/../..' . '/src/Printer.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\Requirement' => __DIR__ . '/../..' . '/src/Requirement.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\RequirementCollection' => __DIR__ . '/../..' . '/src/RequirementCollection.php',
'HumbugBox431\\KevinGH\\RequirementChecker\\Terminal' => __DIR__ . '/../..' . '/src/Terminal.php',
);

public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitHumbugBox420::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitHumbugBox420::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitHumbugBox420::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitHumbugBox431::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitHumbugBox431::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitHumbugBox431::$classMap;

}, null, ClassLoader::class);
}
Expand Down
Loading

0 comments on commit a3d8cc4

Please sign in to comment.