Completed
Pull Request — 3.x (#61)
by Hari
02:18
created
src/Filter/FailureCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function addMessagesForField($field, $messages)
48 48
     {
49
-        if (! isset($this->messages[$field])) {
49
+        if (!isset($this->messages[$field])) {
50 50
             $this->messages[$field] = [];
51 51
         }
52 52
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function getMessagesForField($field)
81 81
     {
82
-        if (! isset($this->messages[$field])) {
82
+        if (!isset($this->messages[$field])) {
83 83
             return array();
84 84
         }
85 85
 
Please login to merge, or discard this patch.
src/Filter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
                 // apply the closure to the data and get back the result
113 113
                 $passed = $closure($values->$field, $values);
114 114
 
115
-                if (! $passed) {
115
+                if (!$passed) {
116 116
                     $this->failures->addMessagesForField($field, $message);
117 117
                 }
118 118
             }
Please login to merge, or discard this patch.