private function isBinary(SplFileInfo $file) { $fileInfo = new FileInfo($file->getPathname(), $this->params['text_extensions']); return false === $fileInfo->hasPredefinedExtension(); }