protected function cleanFilePath($filePath) { $projectRoot = $this->configuration->get('projectRoot'); return empty($projectRoot) ? $filePath : preg_replace("#^{$projectRoot}#", '[project_root]', $filePath); }