@@ -62,7 +62,7 @@ |
||
| 62 | 62 | } |
| 63 | 63 | $code = preg_replace_callback( |
| 64 | 64 | '/`([^`]|\\\\`)+((?<!\\\\)`)/', |
| 65 | - function (array $matches): string { |
|
| 65 | + function(array $matches): string { |
|
| 66 | 66 | return addcslashes($matches[0], '\\'); |
| 67 | 67 | }, |
| 68 | 68 | $this->getAxsComment() |
@@ -32,11 +32,11 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public function resolveClassNames(string $namespace): string |
| 34 | 34 | { |
| 35 | - $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function (array $matches) { |
|
| 35 | + $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function(array $matches) { |
|
| 36 | 36 | return str_replace(':', ':\\', $matches[0]); |
| 37 | 37 | }, $this->expression); |
| 38 | 38 | $expression = preg_replace('/(?<!:):(?=([a-zA-Z_][a-zA-Z0-9_]*))/', "$namespace\\", $expression); |
| 39 | - $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function (array $matches) { |
|
| 39 | + $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function(array $matches) { |
|
| 40 | 40 | return str_replace(':\\', ':', $matches[0]); |
| 41 | 41 | }, $expression); |
| 42 | 42 | return $expression; |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $result = []; |
| 60 | 60 | $conditions = preg_replace_callback( |
| 61 | 61 | '{`([^`]|\\\\`)+((?<!\\\\)`)}', |
| 62 | - function (array $matches) { |
|
| 62 | + function(array $matches) { |
|
| 63 | 63 | return addcslashes($matches[0], '&|'); |
| 64 | 64 | }, |
| 65 | 65 | $conditions |
@@ -231,7 +231,7 @@ |
||
| 231 | 231 | { |
| 232 | 232 | $result = preg_replace_callback( |
| 233 | 233 | '{`([^`]|\\\\`)+((?<!\\\\)`)}', |
| 234 | - function (array $matches) { |
|
| 234 | + function(array $matches) { |
|
| 235 | 235 | return addcslashes($matches[0], ','); |
| 236 | 236 | }, |
| 237 | 237 | $handlers |