src/Core.php
/**
     * Determines whether php is running as a CLI script or a website.
     * @param void
     * @return result (boolean) - true if CLI false if website.
     */
Determines whether php is running as a CLI script or a website.
@param void
@return result (boolean) - true if CLI false if website.
Determines whether php is running as a CLI script or a website . @param void @return result ( boolean ) - true if CLI false if website .
public static function isCli()
    {
        $result = false;
        if (defined('STDIN') )
        {
            $result = true;
        }
        return $result;
    }
public static function isCli ( ) { $ result = false ; if ( defined ( 'STDIN' ) ) { $ result = true ; } return $ result ; }
Determines whether php is running as a CLI script or a website.
Determines whether php is running as a CLI script or a website .