@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | { |
| 400 | 400 | $result = preg_replace_callback( |
| 401 | 401 | '{`([^`]|\\\\`)+((?<!\\\\)`)}', |
| 402 | - function (array $matches) { |
|
| 402 | + function(array $matches) { |
|
| 403 | 403 | return addcslashes($matches[0], ','); |
| 404 | 404 | }, |
| 405 | 405 | $handlers |
@@ -422,7 +422,7 @@ discard block |
||
| 422 | 422 | $result = []; |
| 423 | 423 | $conditions = preg_replace_callback( |
| 424 | 424 | '{`([^`]|\\\\`)+((?<!\\\\)`)}', |
| 425 | - function (array $matches) { |
|
| 425 | + function(array $matches) { |
|
| 426 | 426 | return addcslashes($matches[0], '&|'); |
| 427 | 427 | }, |
| 428 | 428 | $conditions |
@@ -564,11 +564,11 @@ discard block |
||
| 564 | 564 | */ |
| 565 | 565 | private function resolveClassNames(string $expression): string |
| 566 | 566 | { |
| 567 | - $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function (array $matches) { |
|
| 567 | + $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function(array $matches) { |
|
| 568 | 568 | return str_replace(':', ':\\', $matches[0]); |
| 569 | 569 | }, $expression); |
| 570 | 570 | $expression = preg_replace('/(?<!:):(?=([a-zA-Z_][a-zA-Z0-9_]*))/', "$this->namespace\\", $expression); |
| 571 | - $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function (array $matches) { |
|
| 571 | + $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function(array $matches) { |
|
| 572 | 572 | return str_replace(':\\', ':', $matches[0]); |
| 573 | 573 | }, $expression); |
| 574 | 574 | return $expression; |
@@ -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() |