$configuredValue >= self::MAX_EXECUTION_TIME_REQUIREMENT ||
$configuredValue === 0
) ? RequirementCheck::STATUS_SUCCESS : RequirementCheck::STATUS_ERROR,
(string) self::MAX_EXECUTION_TIME_REQUIREMENT,
(string) $configuredValue );
} private function checkMemoryLimit(): SystemCheck
{ $configuredValue =
$this->iniConfigReader->
get('memory_limit'
);
$status = RequirementCheck::STATUS_ERROR;
if (MemorySizeCalculator::
convertToBytes($configuredValue) >= MemorySizeCalculator::
convertToBytes(self::MEMORY_LIMIT_REQUIREMENT
)) { $status = RequirementCheck::STATUS_SUCCESS;
} // -1 means unlimited memory
if ($configuredValue === '-1'
) { $status = RequirementCheck::STATUS_SUCCESS;
} return new SystemCheck( 'memory_limit',
$status,
self::MEMORY_LIMIT_REQUIREMENT,