Passed
Branch dev (f9b2a9)
by Alan
02:42
created
tests/FilterTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 				];
Please login to merge, or discard this patch.
src/FilterFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
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
 			}
Please login to merge, or discard this patch.