Fireguard\Report\Exporters\AbstractPhantomExporter::prefixOsPath PHP Метод

prefixOsPath() публичный Метод

Prefix the input path for windows versions of PhantomJS
public prefixOsPath ( string $path, string $operationalSystem = PHP_OS ) : string
$path string
$operationalSystem string
Результат string
    public function prefixOsPath($path, $operationalSystem = PHP_OS)
    {
        if (strtoupper(substr($operationalSystem, 0, 3)) === 'WIN') {
            return 'file:///' . str_replace('\\', '/', $path);
        }
        return $path;
    }