Adapter/FilesystemAdapter.php
private function getFileKey(\SplFileInfo $file)
    {
        $key = null;

        if ($h = @fopen($file, 'r')) {
            rawurldecode(rtrim(fgets($h)));
            $value = stream_get_contents($h);
            fclose($h);
            $key = substr($value, 0, strpos($value, "\n"));
        }

        return $key;
    }
private function getFileKey(\SplFileInfo $file)
    {
        $key = null;

        if ($h = @fopen($file, 'r')) {
            rawurldecode(rtrim(fgets($h)));
            $value = stream_get_contents($h);
            fclose($h);
            $key = substr($value, 0, strpos($value, "\n"));
        }

        return $key;
    }
private function getFileKey ( \ SplFileInfo $ file ) { $ key = null ; if ( $ h = @ fopen ( $ file , 'r' ) ) { rawurldecode ( rtrim ( fgets ( $ h ) ) ) ; $ value = stream_get_contents ( $ h ) ; fclose ( $ h ) ; $ key = substr ( $ value , 0 , strpos ( $ value , "\n" ) ) ; } return $ key ; }
Get the key of file.

@param \SplFileInfo $file The spl file info

@return null|string
Get the key of file .