Passed
Branch dev (5a9406)
by Alan
02:15
created
tests/ValidationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
 		$filterFactory = new FilterFactory($ruleFactory);
31 31
 
32
-		$filter = $filterFactory->create(Closure::fromCallable(function (RuleFactory $rules) {
32
+		$filter = $filterFactory->create(Closure::fromCallable(function(RuleFactory $rules) {
33 33
 			$rules = [
34 34
 				'int' => $rules->validInt(0, 10),
35 35
 			];
Please login to merge, or discard this patch.
tests/Dummies/DummyFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,6 +41,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/AbstractFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.