File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 55$ functions = ['@lang ' , '__ ' ];
66$ stringPattern =
77 "[^\w] " . // Must not have an alphanum before real method
8- '( ' . implode ('| ' , $ functions ) . ') ' . // Must start with one of the functions
8+ '( ' . implode ('| ' , $ functions ) . ') ' . // Must start with one of the functions
99 "\(\s* " . // Match opening parenthesis
1010 "(?P<quote>[' \"]) " . // Match " or ' and store in {quote}
1111 "(?P<string>(?: \\\k{quote}|(?!\k{quote}).)*) " . // Match any string that can be {quote} escaped
1212 "\k{quote} " . // Match " or ' previously matched
13- "\s*[\),] " ; // Close parentheses or new parameter
13+ "\s*[\),] " ; // Close parentheses or new parameter
1414
1515$ labelPattern =
16- 'label= ' . // Match `label=`
16+ 'label= ' . // Match `label=`
1717 "(?P<quote>[' \"]) " . // Match " or ' and store in {quote}
1818 "(?P<string>(?: \\\k{quote}|(?!\k{quote}).)*) " . // Match any string that can be {quote} escaped
19- "\k{quote} " ; // Match " or ' previously matched
19+ "\k{quote} " ; // Match " or ' previously matched
2020
2121$ files = [];
2222$ iterator = new RecursiveDirectoryIterator ('resources ' );
You can’t perform that action at this time.
0 commit comments