-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
139 additions
and
525 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?php | ||
|
||
namespace _HumbugBox9d880d18ae09\KevinGH\RequirementChecker; | ||
namespace _HumbugBoxacafcfe30294\KevinGH\RequirementChecker; | ||
|
||
require __DIR__ . '/../vendor/autoload.php'; | ||
if (\PHP_SAPI !== 'cli' && \PHP_SAPI !== 'phpdbg') { | ||
echo \PHP_EOL . 'The application may only be invoked from a command line' . \PHP_EOL; | ||
exit(1); | ||
} | ||
$checkPassed = \_HumbugBox9d880d18ae09\KevinGH\RequirementChecker\Checker::checkRequirements(); | ||
$checkPassed = \_HumbugBoxacafcfe30294\KevinGH\RequirementChecker\Checker::checkRequirements(); | ||
if (\false === $checkPassed) { | ||
exit(1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
<?php | ||
|
||
namespace _HumbugBox9d880d18ae09\KevinGH\RequirementChecker; | ||
namespace _HumbugBoxacafcfe30294\KevinGH\RequirementChecker; | ||
|
||
/** | ||
@private | ||
*/ | ||
interface IsFulfilled | ||
{ | ||
/** | ||
@return | ||
*/ | ||
public function __invoke(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
<?php | ||
|
||
namespace _HumbugBox9d880d18ae09\KevinGH\RequirementChecker; | ||
namespace _HumbugBoxacafcfe30294\KevinGH\RequirementChecker; | ||
|
||
use _HumbugBox9d880d18ae09\Composer\Semver\Semver; | ||
/** | ||
@private | ||
*/ | ||
final class IsPhpVersionFulfilled implements \_HumbugBox9d880d18ae09\KevinGH\RequirementChecker\IsFulfilled | ||
use _HumbugBoxacafcfe30294\Composer\Semver\Semver; | ||
final class IsPhpVersionFulfilled implements \_HumbugBoxacafcfe30294\KevinGH\RequirementChecker\IsFulfilled | ||
{ | ||
private $requiredPhpVersion; | ||
/** | ||
@param | ||
*/ | ||
public function __construct($requiredPhpVersion) | ||
{ | ||
$this->requiredPhpVersion = $requiredPhpVersion; | ||
} | ||
public function __invoke() | ||
{ | ||
return \_HumbugBox9d880d18ae09\Composer\Semver\Semver::satisfies(\sprintf('%d.%d.%d', \PHP_MAJOR_VERSION, \PHP_MINOR_VERSION, \PHP_RELEASE_VERSION), $this->requiredPhpVersion); | ||
return \_HumbugBoxacafcfe30294\Composer\Semver\Semver::satisfies(\sprintf('%d.%d.%d', \PHP_MAJOR_VERSION, \PHP_MINOR_VERSION, \PHP_RELEASE_VERSION), $this->requiredPhpVersion); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.