Phrozn\Runner\CommandLine\Callback\Base::isAbsolute PHP Method

isAbsolute() protected method

See whether given path is absolute or relative
protected isAbsolute ( string $path ) : boolean
$path string Path to check
return boolean
    protected function isAbsolute($path)
    {
        if (PHP_OS == 'WINNT' || PHP_OS == 'WIN32') {
            $pattern = '/^[a-zA-Z]:[\\\\\\/]/';
            return preg_match($pattern, $path);
        } else {
            return $path[0] == '/';
        }
    }