BrowscapPHP\Command\LogfileCommand::getPath PHP Method

getPath() private method

private getPath ( Symfony\Component\Finder\SplFileInfo $file ) : string
$file Symfony\Component\Finder\SplFileInfo
return string
    private function getPath(SplFileInfo $file)
    {
        switch ($file->getExtension()) {
            case 'gz':
                $path = 'compress.zlib://' . $file->getPathname();
                break;
            case 'bz2':
                $path = 'compress.bzip2://' . $file->getPathname();
                break;
            default:
                $path = $file->getPathname();
                break;
        }
        return $path;
    }