Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing files to the requirement checker dump #216

Merged
merged 1 commit into from
May 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .requirement-checker/src/IsExtensionFulfilled.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace _HumbugBox5af55dff3f2db\KevinGH\RequirementChecker;

/**
@private
*/
final class IsExtensionFulfilled implements \_HumbugBox5af55dff3f2db\KevinGH\RequirementChecker\IsFulfilled
{
private $requiredExtension;
/**
@param
*/
public function __construct($requiredExtension)
{
$this->requiredExtension = $requiredExtension;
}
public function __invoke()
{
return \extension_loaded($this->requiredExtension);
}
}
14 changes: 14 additions & 0 deletions .requirement-checker/src/IsFulfilled.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace _HumbugBox5af55dff3f2db\KevinGH\RequirementChecker;

/**
@private
*/
interface IsFulfilled
{
/**
@return
*/
public function __invoke();
}
23 changes: 23 additions & 0 deletions .requirement-checker/src/IsPhpVersionFulfilled.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace _HumbugBox5af55dff3f2db\KevinGH\RequirementChecker;

use _HumbugBox5af55dff3f2db\Composer\Semver\Semver;
/**
@private
*/
final class IsPhpVersionFulfilled implements \_HumbugBox5af55dff3f2db\KevinGH\RequirementChecker\IsFulfilled
{
private $requiredPhpVersion;
/**
@param
*/
public function __construct($requiredPhpVersion)
{
$this->requiredPhpVersion = $requiredPhpVersion;
}
public function __invoke()
{
return \_HumbugBox5af55dff3f2db\Composer\Semver\Semver::satisfies(\sprintf('%d.%d.%d', \PHP_MAJOR_VERSION, \PHP_MINOR_VERSION, \PHP_RELEASE_VERSION), $this->requiredPhpVersion);
}
}