@@ -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() |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | /** @var int field with short condition */ |
| 30 | 30 | private $shortCondition; #> +wrt int 1..10 |
| 31 | 31 | /** @var string field with full condition */ |
| 32 | - private $fullCondition; #> +wrt string `!is_null($this->shortCondition)` |
|
| 32 | + private $fullCondition; #> +wrt string `!is_null($this->shortCondition)` |
|
| 33 | 33 | /** @var string[] field with several conditions */ |
| 34 | 34 | private $multipleConditions; #> +wrt array[string] `$this->shortCondition == 9` && `$this->fullCondition == 'value'` |
| 35 | 35 | /** @var mixed field with several conditions and logical operators */ |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $test = new SampleClass(); |
| 44 | 44 | |
| 45 | 45 | try { |
| 46 | - $test->setInt(function () { |
|
| 46 | + $test->setInt(function() { |
|
| 47 | 47 | }); |
| 48 | 48 | } catch (TypeError $error) { |
| 49 | 49 | echo $error->getMessage() . PHP_EOL; |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | try { |
| 54 | - $test->setIntOrBoolOrString(function () { |
|
| 54 | + $test->setIntOrBoolOrString(function() { |
|
| 55 | 55 | }); |
| 56 | 56 | } catch (TypeError $error) { |
| 57 | 57 | echo $error->getMessage() . PHP_EOL; |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | try { |
| 64 | - $test->setCustomClass(function () { |
|
| 64 | + $test->setCustomClass(function() { |
|
| 65 | 65 | }); |
| 66 | 66 | } catch (TypeError $error) { |
| 67 | 67 | echo $error->getMessage() . PHP_EOL; |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | try { |
| 72 | - $test->setStdClass(function () { |
|
| 72 | + $test->setStdClass(function() { |
|
| 73 | 73 | }); |
| 74 | 74 | } catch (TypeError $error) { |
| 75 | 75 | echo $error->getMessage() . PHP_EOL; |
@@ -57,11 +57,11 @@ |
||
| 57 | 57 | use Axessors; |
| 58 | 58 | |
| 59 | 59 | /** @var mixed a field with public accessors */ |
| 60 | - private $publicAccess; #> +axs mixed |
|
| 60 | + private $publicAccess; #> +axs mixed |
|
| 61 | 61 | /** @var mixed a field with protected accessors */ |
| 62 | 62 | private $protectedAccess; #> ~axs mixed |
| 63 | 63 | /** @var mixed a field with private accessors */ |
| 64 | - private $privateAccess; #> -axs mixed |
|
| 64 | + private $privateAccess; #> -axs mixed |
|
| 65 | 65 | |
| 66 | 66 | /** Tests a method with public access. */ |
| 67 | 67 | public function testPublic(): void |