src/Service/Flow/Emergency.php
public function checkEmergencyBreak()
    {
        if ($this->disabled === true) {
            // Tell them, everything is OK!
            return false;
        }

        if (static::$allIsOk === false) {
            // This has failed before!
            // No need to check again!
            return true;
        }

        return $this->checkMemory() || $this->checkRuntime();
    }
public function checkEmergencyBreak()
    {
        if ($this->disabled === true) {
            // Tell them, everything is OK!
            return false;
        }

        if (static::$allIsOk === false) {
            // This has failed before!
            // No need to check again!
            return true;
        }

        return $this->checkMemory() || $this->checkRuntime();
    }
public function checkEmergencyBreak ( ) { if ( $ this -> disabled === true ) { // Tell them, everything is OK! return false ; } if ( static :: $ allIsOk === false ) { // This has failed before! // No need to check again! return true ; } return $ this -> checkMemory ( ) || $ this -> checkRuntime ( ) ; }
Checks if there is enough memory and time left on the Server.

@return bool
Boolean to show if we have enough left.
FALSE = all is OK.
TRUE = we have a problem.
Checks if there is enough memory and time left on the Server .