src/EnvironmentCheckSuiteResult.php
protected function statusText($status)
    {
        switch ($status) {
            case EnvironmentCheck::ERROR:
                return 'ERROR';
                break;
            case EnvironmentCheck::WARNING:
                return 'WARNING';
                break;
            case EnvironmentCheck::OK:
                return 'OK';
                break;
            case 0:
                return 'NO CHECKS';
                break;
            default:
                throw new InvalidArgumentException("Bad environment check status '$status'");
                break;
        }
    }
protected function statusText($status)
    {
        switch ($status) {
            case EnvironmentCheck::ERROR:
                return 'ERROR';
                break;
            case EnvironmentCheck::WARNING:
                return 'WARNING';
                break;
            case EnvironmentCheck::OK:
                return 'OK';
                break;
            case 0:
                return 'NO CHECKS';
                break;
            default:
                throw new InvalidArgumentException("Bad environment check status '$status'");
                break;
        }
    }
protected function statusText ( $ status ) { switch ( $ status ) { case EnvironmentCheck :: ERROR : return 'ERROR' ; break ; case EnvironmentCheck :: WARNING : return 'WARNING' ; break ; case EnvironmentCheck :: OK : return 'OK' ; break ; case 0 : return 'NO CHECKS' ; break ; default : throw new InvalidArgumentException ( "Bad environment check status '$status'" ) ; break ; } }
Return a text version of a status code.

@param  int $status
@return string
@throws InvalidArgumentException
Return a text version of a status code .