diff --git a/src/Services/Parser.php b/src/Services/Parser.php index 1bde461..9c5a74e 100644 --- a/src/Services/Parser.php +++ b/src/Services/Parser.php @@ -101,7 +101,7 @@ protected function getStrings(SplFileInfo $file): Collection */ protected function searchPattern(string $function): string { - return '/(' . $function . ')\([\r\n\s]{0,}\h*[\'"](.+)[\'"]\h*[\r\n\s]{0,}[),]/U'; + return '/('.$function.')\([\r\n\s]{0,}\h*[\'"](.+)[\'"]\h*[\r\n\s]{0,}[),]/U'; } /**