src/protocol.class.php
private static function isCli()
    {
        if (self::$cli === null) {
            //initial setter
            if (php_sapi_name() == 'cli') {
                self::$cli = true;
            } else {
                self::$cli = false;
            }
        }

        return self::$cli;
    }
private static function isCli()
    {
        if (self::$cli === null) {
            //initial setter
            if (php_sapi_name() == 'cli') {
                self::$cli = true;
            } else {
                self::$cli = false;
            }
        }

        return self::$cli;
    }
private static function isCli ( ) { if ( self :: $ cli === null ) { //initial setter if ( php_sapi_name ( ) == 'cli' ) { self :: $ cli = true ; } else { self :: $ cli = false ; } } return self :: $ cli ; }
check if call is from command line.

@return bool
check if call is from command line .