File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -180,11 +180,11 @@ public function findTranslations($path = null)
180
180
$ stringPattern =
181
181
"[^\w] " . // Must not have an alphanum before real method
182
182
'( ' .implode ('| ' , $ functions ).') ' . // Must start with one of the functions
183
- "\( " . // Match opening parenthesis
183
+ "\(\s* " . // Match opening parenthesis
184
184
"(?P<quote>[' \"]) " . // Match " or ' and store in {quote}
185
185
"(?P<string>(?: \\\k{quote}|(?!\k{quote}).)*) " . // Match any string that can be {quote} escaped
186
186
"\k{quote} " . // Match " or ' previously matched
187
- "[\),] " ; // Close parentheses or new parameter
187
+ "\s* [\),] " ; // Close parentheses or new parameter
188
188
189
189
// Find all PHP + Twig files in the app folder, except for storage
190
190
$ finder = new Finder ();
You can’t perform that action at this time.
0 commit comments