public function parseFromFilePath(string $filePath) : array { $fileContent = FileSystem::read($filePath); $eolChar = $this->eolCharDetector->detectForContent($fileContent); return $this->parseLegacyWithFileContentAndEolChar($fileContent, $eolChar); }
public function detectForFilePath(string $filePath) : string { $content = FileSystem::read($filePath); return $this->detectForContent($content); }