Skip to content

Commit

Permalink
build: Update the RequirementChecker (#1066)
Browse files Browse the repository at this point in the history
Update the RequirementChecker

Co-authored-by: theofidry <[email protected]>
  • Loading branch information
github-actions[bot] and theofidry authored Oct 14, 2023
1 parent 6bb9cd2 commit 75f201f
Show file tree
Hide file tree
Showing 30 changed files with 102 additions and 102 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 HumbugBox438\KevinGH\RequirementChecker;
namespace HumbugBox440\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 HumbugBox438\KevinGH\RequirementChecker;
namespace HumbugBox440\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 HumbugBox438\KevinGH\RequirementChecker;
namespace HumbugBox440\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 HumbugBox438\KevinGH\RequirementChecker;
namespace HumbugBox440\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 HumbugBox438\KevinGH\RequirementChecker;
namespace HumbugBox440\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 HumbugBox438\KevinGH\RequirementChecker;
namespace HumbugBox440\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 HumbugBox438\KevinGH\RequirementChecker;
namespace HumbugBox440\KevinGH\RequirementChecker;

use HumbugBox438\Composer\Semver\Semver;
use HumbugBox440\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 HumbugBox438\KevinGH\RequirementChecker;
namespace HumbugBox440\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 HumbugBox438\KevinGH\RequirementChecker;
namespace HumbugBox440\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 HumbugBox438\KevinGH\RequirementChecker;
namespace HumbugBox440\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 HumbugBox438\KevinGH\RequirementChecker;
namespace HumbugBox440\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 ComposerAutoloaderInitHumbugBox438::getLoader();
return ComposerAutoloaderInitHumbugBox440::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 HumbugBox438\Composer;
namespace HumbugBox440\Composer;

use HumbugBox438\Composer\Autoload\ClassLoader;
use HumbugBox438\Composer\Semver\VersionParser;
use HumbugBox440\Composer\Autoload\ClassLoader;
use HumbugBox440\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('HumbugBox438\\Composer\\Autoload\\ClassLoader', 'getRegisteredLoaders');
self::$canGetVendors = \method_exists('HumbugBox440\\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',
'HumbugBox438\\Composer\\Semver\\Comparator' => $vendorDir . '/composer/semver/src/Comparator.php',
'HumbugBox438\\Composer\\Semver\\CompilingMatcher' => $vendorDir . '/composer/semver/src/CompilingMatcher.php',
'HumbugBox438\\Composer\\Semver\\Constraint\\Bound' => $vendorDir . '/composer/semver/src/Constraint/Bound.php',
'HumbugBox438\\Composer\\Semver\\Constraint\\Constraint' => $vendorDir . '/composer/semver/src/Constraint/Constraint.php',
'HumbugBox438\\Composer\\Semver\\Constraint\\ConstraintInterface' => $vendorDir . '/composer/semver/src/Constraint/ConstraintInterface.php',
'HumbugBox438\\Composer\\Semver\\Constraint\\MatchAllConstraint' => $vendorDir . '/composer/semver/src/Constraint/MatchAllConstraint.php',
'HumbugBox438\\Composer\\Semver\\Constraint\\MatchNoneConstraint' => $vendorDir . '/composer/semver/src/Constraint/MatchNoneConstraint.php',
'HumbugBox438\\Composer\\Semver\\Constraint\\MultiConstraint' => $vendorDir . '/composer/semver/src/Constraint/MultiConstraint.php',
'HumbugBox438\\Composer\\Semver\\Interval' => $vendorDir . '/composer/semver/src/Interval.php',
'HumbugBox438\\Composer\\Semver\\Intervals' => $vendorDir . '/composer/semver/src/Intervals.php',
'HumbugBox438\\Composer\\Semver\\Semver' => $vendorDir . '/composer/semver/src/Semver.php',
'HumbugBox438\\Composer\\Semver\\VersionParser' => $vendorDir . '/composer/semver/src/VersionParser.php',
'HumbugBox438\\KevinGH\\RequirementChecker\\Checker' => $baseDir . '/src/Checker.php',
'HumbugBox438\\KevinGH\\RequirementChecker\\IO' => $baseDir . '/src/IO.php',
'HumbugBox438\\KevinGH\\RequirementChecker\\IsExtensionConflictFulfilled' => $baseDir . '/src/IsExtensionConflictFulfilled.php',
'HumbugBox438\\KevinGH\\RequirementChecker\\IsExtensionFulfilled' => $baseDir . '/src/IsExtensionFulfilled.php',
'HumbugBox438\\KevinGH\\RequirementChecker\\IsFulfilled' => $baseDir . '/src/IsFulfilled.php',
'HumbugBox438\\KevinGH\\RequirementChecker\\IsPhpVersionFulfilled' => $baseDir . '/src/IsPhpVersionFulfilled.php',
'HumbugBox438\\KevinGH\\RequirementChecker\\Printer' => $baseDir . '/src/Printer.php',
'HumbugBox438\\KevinGH\\RequirementChecker\\Requirement' => $baseDir . '/src/Requirement.php',
'HumbugBox438\\KevinGH\\RequirementChecker\\RequirementCollection' => $baseDir . '/src/RequirementCollection.php',
'HumbugBox438\\KevinGH\\RequirementChecker\\Terminal' => $baseDir . '/src/Terminal.php',
'HumbugBox440\\Composer\\Semver\\Comparator' => $vendorDir . '/composer/semver/src/Comparator.php',
'HumbugBox440\\Composer\\Semver\\CompilingMatcher' => $vendorDir . '/composer/semver/src/CompilingMatcher.php',
'HumbugBox440\\Composer\\Semver\\Constraint\\Bound' => $vendorDir . '/composer/semver/src/Constraint/Bound.php',
'HumbugBox440\\Composer\\Semver\\Constraint\\Constraint' => $vendorDir . '/composer/semver/src/Constraint/Constraint.php',
'HumbugBox440\\Composer\\Semver\\Constraint\\ConstraintInterface' => $vendorDir . '/composer/semver/src/Constraint/ConstraintInterface.php',
'HumbugBox440\\Composer\\Semver\\Constraint\\MatchAllConstraint' => $vendorDir . '/composer/semver/src/Constraint/MatchAllConstraint.php',
'HumbugBox440\\Composer\\Semver\\Constraint\\MatchNoneConstraint' => $vendorDir . '/composer/semver/src/Constraint/MatchNoneConstraint.php',
'HumbugBox440\\Composer\\Semver\\Constraint\\MultiConstraint' => $vendorDir . '/composer/semver/src/Constraint/MultiConstraint.php',
'HumbugBox440\\Composer\\Semver\\Interval' => $vendorDir . '/composer/semver/src/Interval.php',
'HumbugBox440\\Composer\\Semver\\Intervals' => $vendorDir . '/composer/semver/src/Intervals.php',
'HumbugBox440\\Composer\\Semver\\Semver' => $vendorDir . '/composer/semver/src/Semver.php',
'HumbugBox440\\Composer\\Semver\\VersionParser' => $vendorDir . '/composer/semver/src/VersionParser.php',
'HumbugBox440\\KevinGH\\RequirementChecker\\Checker' => $baseDir . '/src/Checker.php',
'HumbugBox440\\KevinGH\\RequirementChecker\\IO' => $baseDir . '/src/IO.php',
'HumbugBox440\\KevinGH\\RequirementChecker\\IsExtensionConflictFulfilled' => $baseDir . '/src/IsExtensionConflictFulfilled.php',
'HumbugBox440\\KevinGH\\RequirementChecker\\IsExtensionFulfilled' => $baseDir . '/src/IsExtensionFulfilled.php',
'HumbugBox440\\KevinGH\\RequirementChecker\\IsFulfilled' => $baseDir . '/src/IsFulfilled.php',
'HumbugBox440\\KevinGH\\RequirementChecker\\IsPhpVersionFulfilled' => $baseDir . '/src/IsPhpVersionFulfilled.php',
'HumbugBox440\\KevinGH\\RequirementChecker\\Printer' => $baseDir . '/src/Printer.php',
'HumbugBox440\\KevinGH\\RequirementChecker\\Requirement' => $baseDir . '/src/Requirement.php',
'HumbugBox440\\KevinGH\\RequirementChecker\\RequirementCollection' => $baseDir . '/src/RequirementCollection.php',
'HumbugBox440\\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(
'HumbugBox438\\KevinGH\\RequirementChecker\\' => array($baseDir . '/src'),
'HumbugBox438\\Composer\\Semver\\' => array($vendorDir . '/composer/semver/src'),
'HumbugBox440\\KevinGH\\RequirementChecker\\' => array($baseDir . '/src'),
'HumbugBox440\\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 ComposerAutoloaderInitHumbugBox438
class ComposerAutoloaderInitHumbugBox440
{
private static $loader;

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

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

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitHumbugBox438::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitHumbugBox440::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 ComposerStaticInitHumbugBox438
class ComposerStaticInitHumbugBox440
{
public static $prefixLengthsPsr4 = array (
'H' =>
array (
'HumbugBox438\\KevinGH\\RequirementChecker\\' => 40,
'HumbugBox438\\Composer\\Semver\\' => 29,
'HumbugBox440\\KevinGH\\RequirementChecker\\' => 40,
'HumbugBox440\\Composer\\Semver\\' => 29,
),
);

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

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

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

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

0 comments on commit 75f201f

Please sign in to comment.