private function fixLockFileRealPathsWithRelativePaths(Filesystem $fileSystem, $lockFile, $conductorRealPaths, $relativePaths) { $initialContent = file_get_contents($lockFile); $fixedContent = str_replace($conductorRealPaths, $relativePaths, $initialContent); if ($initialContent === $fixedContent) { return false; } $fileSystem->dumpFile($lockFile, $fixedContent); return true; }