File ManagerCurrent Directory: wp-content/plugins/backwpup/vendor/inpsyde/plugin-environment-checker/srcLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: EnvironmentChecker.php <?php namespace Inpsyde\EnvironmentChecker; use Inpsyde\EnvironmentChecker\Constraints\AbstractVersionConstraint; use Inpsyde\EnvironmentChecker\Constraints\ConstraintInterface; use Inpsyde\EnvironmentChecker\Exception\ConstraintFailedException; use Inpsyde\EnvironmentChecker\Exception\ConstraintFailedExceptionInterface; class EnvironmentChecker implements ConstraintInterface { protected $constraintsArray; /** * @var array<string> List of the error messages if environment is not ok. */ protected $errors; /** * __construct function. * * @access public * * @param AbstractVersionConstraint[] $constraintsArray */ function __construct(array $constraintsArray) { $this->constraintsArray = $constraintsArray; $this->errors = []; } public function check() { foreach ($this->constraintsArray as $constraint) { assert($constraint instanceof ConstraintInterface); try { $constraint->check(); } catch (ConstraintFailedExceptionInterface $e) { $this->errors[] = $e; } } $errCount = count($this->errors); if ($errCount) { throw new ConstraintFailedException( $this, 'General Checker', $this->errors, $this->__('Validation failed with %1$d errors', [$errCount]) ); } } /** * Translates a string, interpolating params. * * @param string $string The string to translate. Can be a {@see sprintf()} style format. * @param array $params The param values to interpolate into the string. * @return string The translated string with params interpolated. */ protected function __($string, $params = []) { return vsprintf($string, $params); } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)DirConstraintsDirectory Rename | DeleteConstraintsCollectionFactory.phpFile506.00 B Rename | Delete | EditConstraintsCollectionFactoryInterface.phpFile185.00 B Rename | Delete | EditEnvironmentChecker.phpFile1.64 KB Rename | Delete | EditExceptionDirectory Rename | Delete