Passed
Branch dev (33fe06)
by Alan
02:26
created
Category
src/AbstractFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,6 +121,6 @@
 block discarded – undo
121 121
 	 */
122 122
 	protected function getDefinitions(): array
123 123
 	{
124
-		return array_map(fn (RuleInterface $rule) => $rule->toArray(), $this->getRules());
124
+		return array_map(fn(RuleInterface $rule) => $rule->toArray(), $this->getRules());
125 125
 	}
126 126
 }
Please login to merge, or discard this patch.
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.