Passed
Branch master (a506cc)
by Alan
03:20 queued 01:07
created
tests/FilterTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 		$this->assertInstanceOf(RuleFactory::class, $filterFactory->getRuleFactory());
39 39
 
40 40
 		$filter = $filterFactory
41
-			->create(function (RuleFactory $rules) {
41
+			->create(function(RuleFactory $rules) {
42 42
 				$rules = [
43 43
 					'int' => $rules->validInt(0, 10),
44 44
 				];
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 		$this->expectExceptionMessage(sprintf('Expected value of type array; NULL given.', RuleInterface::class));
65 65
 
66 66
 		$filterFactory
67
-			->create(function () {
67
+			->create(function() {
68 68
 				return null;
69 69
 			});
70 70
 	}
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		$this->expectExceptionMessage(sprintf('Expected value of type associative array; array given.', RuleInterface::class));
85 85
 
86 86
 		$filterFactory
87
-			->create(function (RuleFactory $rules) {
87
+			->create(function(RuleFactory $rules) {
88 88
 				return [
89 89
 					$rules->cleanEmail(),
90 90
 				];
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 		$this->expectExceptionMessage(sprintf('Expected value of type %s; string given.', RuleInterface::class));
108 108
 
109 109
 		$filterFactory
110
-			->create(function () {
110
+			->create(function() {
111 111
 				return [
112 112
 					'foo' => 'bar',
113 113
 				];
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) {
70
+		array_walk($rules, function($rule) {
71 71
 			if (!($rule instanceof RuleInterface)) {
72 72
 				throw new UnexpectedTypeException($rule, RuleInterface::class);
73 73
 			}
Please login to merge, or discard this patch.