public function review(ReporterInterface $reporter, ReviewableInterface $file)
    {
        $cmd = sprintf('file %s | grep --fixed-strings --quiet "CRLF"', $file->getFullPath());

        $process = $this->getProcess($cmd);
        $process->run();

        if ($process->isSuccessful()) {
            $message = 'File contains CRLF line endings';
            $reporter->error($message, $this, $file);
        }
    }
public function review(ReporterInterface $reporter, ReviewableInterface $file)
    {
        $cmd = sprintf('file %s | grep --fixed-strings --quiet "CRLF"', $file->getFullPath());

        $process = $this->getProcess($cmd);
        $process->run();

        if ($process->isSuccessful()) {
            $message = 'File contains CRLF line endings';
            $reporter->error($message, $this, $file);
        }
    }
public function review ( ReporterInterface $ reporter , ReviewableInterface $ file ) { $ cmd = sprintf ( 'file %s | grep --fixed-strings --quiet "CRLF"' , $ file -> getFullPath ( ) ) ; $ process = $ this -> getProcess ( $ cmd ) ; $ process -> run ( ) ; if ( $ process -> isSuccessful ( ) ) { $ message = 'File contains CRLF line endings' ; $ reporter -> error ( $ message , $ this , $ file ) ; } }
Checks if the set file contains any CRLF line endings.

@link http://stackoverflow.com/a/3570574
Checks if the set file contains any CRLF line endings .