@@ -41,6 +41,6 @@ |
||
41 | 41 | |
42 | 42 | public function mult(int $factor) |
43 | 43 | { |
44 | - return fn ($value) => intval($value) * $factor; |
|
44 | + return fn($value) => intval($value) * $factor; |
|
45 | 45 | } |
46 | 46 | } |
@@ -163,7 +163,7 @@ |
||
163 | 163 | protected function getDefinitions(): array |
164 | 164 | { |
165 | 165 | return array_map( |
166 | - fn (RuleInterface $rule) => $rule->toArray(), |
|
166 | + fn(RuleInterface $rule) => $rule->toArray(), |
|
167 | 167 | $this->getRules() |
168 | 168 | ); |
169 | 169 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $this->assertInstanceOf(RuleFactory::class, $filterFactory->getRuleFactory()); |
41 | 41 | |
42 | 42 | $filter = $filterFactory |
43 | - ->create(function (RuleFactory $rules) { |
|
43 | + ->create(function(RuleFactory $rules) { |
|
44 | 44 | $rules = [ |
45 | 45 | 'int' => $rules->validInt(0, 10), |
46 | 46 | ]; |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $this->expectExceptionMessage(sprintf('Expected value of type array; NULL given.', RuleInterface::class)); |
67 | 67 | |
68 | 68 | $filterFactory |
69 | - ->create(function (RuleFactory $rules) { |
|
69 | + ->create(function(RuleFactory $rules) { |
|
70 | 70 | return null; |
71 | 71 | }); |
72 | 72 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $this->expectExceptionMessage(sprintf('Expected value of type associative array; array given.', RuleInterface::class)); |
87 | 87 | |
88 | 88 | $filterFactory |
89 | - ->create(function (RuleFactory $rules) { |
|
89 | + ->create(function(RuleFactory $rules) { |
|
90 | 90 | return [ |
91 | 91 | $rules->cleanEmail(), |
92 | 92 | ]; |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | $this->expectExceptionMessage(sprintf('Expected value of type %s; string given.', RuleInterface::class)); |
110 | 110 | |
111 | 111 | $filterFactory |
112 | - ->create(function (RuleFactory $rules) { |
|
112 | + ->create(function(RuleFactory $rules) { |
|
113 | 113 | return [ |
114 | 114 | 'foo' => 'bar', |
115 | 115 | ]; |
@@ -67,7 +67,7 @@ |
||
67 | 67 | throw new UnexpectedTypeException($rules, 'associative array'); |
68 | 68 | } |
69 | 69 | |
70 | - array_walk($rules, function ($rule, $key) { |
|
70 | + array_walk($rules, function($rule, $key) { |
|
71 | 71 | if (!($rule instanceof RuleInterface)) { |
72 | 72 | throw new UnexpectedTypeException($rule, RuleInterface::class); |
73 | 73 | } |