@@ -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; |
@@ -23,10 +23,10 @@ discard block |
||
| 23 | 23 | * @param $var mixed variable |
| 24 | 24 | * @return bool result of the checkout |
| 25 | 25 | */ |
| 26 | - final public static function is($var): bool |
|
| 27 | - { |
|
| 28 | - return is_iterable($var) && static::isThis($var); |
|
| 29 | - } |
|
| 26 | + final public static function is($var): bool |
|
| 27 | + { |
|
| 28 | + return is_iterable($var) && static::isThis($var); |
|
| 29 | + } |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Checks the type of the variable. |
@@ -34,5 +34,5 @@ discard block |
||
| 34 | 34 | * @param $var mixed variable |
| 35 | 35 | * @return bool result of the checkout |
| 36 | 36 | */ |
| 37 | - abstract protected static function isThis($var): bool; |
|
| 37 | + abstract protected static function isThis($var): bool; |
|
| 38 | 38 | } |
@@ -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() |