@@ -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 | } |
@@ -32,11 +32,11 @@ discard block |
||
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; |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | { |
47 | 47 | return preg_replace_callback( |
48 | 48 | '/`([^`]|\\\\`)+((?<!\\\\)`)/', |
49 | - function (array $matches) use($charlist): string { |
|
49 | + function(array $matches) use($charlist): string { |
|
50 | 50 | return addcslashes($matches[0], $charlist); |
51 | 51 | }, |
52 | 52 | $this->expression |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | * |
198 | 198 | * @param string $type type |
199 | 199 | */ |
200 | - private function replaceBool(string &$type): void |
|
200 | + private function replaceBool(string & $type): void |
|
201 | 201 | { |
202 | 202 | switch ($type) { |
203 | 203 | case 'bool': |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | * |
212 | 212 | * @param string $type type |
213 | 213 | */ |
214 | - private function replaceInt(string &$type): void |
|
214 | + private function replaceInt(string & $type): void |
|
215 | 215 | { |
216 | 216 | switch ($type) { |
217 | 217 | case 'int': |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | * |
226 | 226 | * @param string $type type |
227 | 227 | */ |
228 | - private function replaceFloat(string &$type): void |
|
228 | + private function replaceFloat(string & $type): void |
|
229 | 229 | { |
230 | 230 | switch ($type) { |
231 | 231 | case 'int': |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | * |
240 | 240 | * @param string $type type |
241 | 241 | */ |
242 | - private function replaceAxs(string &$type): void |
|
242 | + private function replaceAxs(string & $type): void |
|
243 | 243 | { |
244 | 244 | switch ($type) { |
245 | 245 | case 'string': |