src/Plugin/Quit.php
public static function quit($status = 0)
    {
        if (static::enabled()) {
            exit($status);
        }
        if (!is_numeric($status)) {
            throw new QuitException('Exit statement occurred with message: ' . $status, 0);
        }
        throw new QuitException('Exit statement occurred', $status);
    }
public static function quit($status = 0)
    {
        if (static::enabled()) {
            exit($status);
        }
        if (!is_numeric($status)) {
            throw new QuitException('Exit statement occurred with message: ' . $status, 0);
        }
        throw new QuitException('Exit statement occurred', $status);
    }
public static function quit ( $ status = 0 ) { if ( static :: enabled ( ) ) { exit ( $ status ) ; } if ( ! is_numeric ( $ status ) ) { throw new QuitException ( 'Exit statement occurred with message: ' . $ status , 0 ) ; } throw new QuitException ( 'Exit statement occurred' , $ status ) ; }
Run a controlled quit statement.

@param  integer|string       $status Use 0 for a successful exit.
@throws Kahlan\QuitException         Only if disableed is `true`.
Run a controlled quit statement .