Completed
Push — 3.x ( eb6949...ce948d )
by Hari
9s
created
src/Fieldset.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -353,8 +353,8 @@  discard block
 block discarded – undo
353 353
      * @return bool True if all the filter rules pass, false if not.
354 354
      *
355 355
      */
356
-     public function filter()
357
-     {
356
+        public function filter()
357
+        {
358 358
         $success = $this->filter->apply($this);
359 359
         if (! $success) {
360 360
             $this->success = $success;
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
             }
372 372
         }
373 373
 
374
-         // If there is no failure, then it is a success on all Filters
374
+            // If there is no failure, then it is a success on all Filters
375 375
         if (! isset($this->success) && $success) {
376 376
             $this->success = true;
377 377
         }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function __isset($name)
144 144
     {
145
-        if (! isset($this->inputs[$name])) {
145
+        if (!isset($this->inputs[$name])) {
146 146
             return false;
147 147
         }
148 148
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      */
189 189
     public function getInput($name)
190 190
     {
191
-        if (! isset($this->inputs[$name])) {
191
+        if (!isset($this->inputs[$name])) {
192 192
             throw new Exception\NoSuchInput($name);
193 193
         }
194 194
 
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
      public function filter()
357 357
      {
358 358
         $success = $this->filter->apply($this);
359
-        if (! $success) {
359
+        if (!$success) {
360 360
             $this->success = $success;
361 361
         }
362 362
         $this->failures = $this->filter->getFailures();
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
         // Iterate on fieldset or collection and get failures
365 365
         foreach ($this->inputs as $name => $input) {
366 366
             if ($input instanceof Fieldset || $input instanceof Collection) {
367
-                if (! $input->filter()) {
367
+                if (!$input->filter()) {
368 368
                     $this->success = false;
369 369
                     $this->failures->offsetSet($name, $input->getFailures());
370 370
                 }
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
         }
373 373
 
374 374
          // If there is no failure, then it is a success on all Filters
375
-        if (! isset($this->success) && $success) {
375
+        if (!isset($this->success) && $success) {
376 376
             $this->success = true;
377 377
         }
378 378
 
Please login to merge, or discard this patch.