@@ -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() |
@@ -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 |