Completed
Pull Request — 3.x (#65)
by Hari
03:54
created
src/Form.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  *
5 5
  * This file is part of the Aura project for PHP.
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function fill(array $data)
79 79
     {
80
-        if ($this->anti_csrf && ! $this->anti_csrf->isValid($data)) {
80
+        if ($this->anti_csrf && !$this->anti_csrf->isValid($data)) {
81 81
             throw new Exception\CsrfViolation;
82 82
         }
83 83
         parent::fill($data);
Please login to merge, or discard this patch.
src/Exception/NoSuchInput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  *
5 5
  * This file is part of the Aura project for PHP.
Please login to merge, or discard this patch.
src/Exception/NoSuchForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  *
5 5
  * This file is part of the Aura project for PHP.
Please login to merge, or discard this patch.
src/Exception/CsrfViolation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  *
5 5
  * This file is part of the Aura project for PHP.
Please login to merge, or discard this patch.
src/AbstractInput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  *
5 5
  * This file is part of the Aura project for PHP.
Please login to merge, or discard this patch.
src/Filter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  *
5 5
  * This file is part of the Aura project for PHP.
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                 // apply the closure to the data and get back the result
133 133
                 $passed = $closure($values->$field, $values);
134 134
 
135
-                if (! $passed) {
135
+                if (!$passed) {
136 136
                     $this->failures->addMessagesForField($field, $message);
137 137
                 }
138 138
             }
Please login to merge, or discard this patch.
src/AntiCsrfInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  *
5 5
  * This file is part of the Aura project for PHP.
Please login to merge, or discard this patch.
src/Fieldset.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  *
5 5
  * This file is part of the Aura project for PHP.
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     public function __isset($name)
146 146
     {
147
-        if (! isset($this->inputs[$name])) {
147
+        if (!isset($this->inputs[$name])) {
148 148
             return false;
149 149
         }
150 150
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      */
191 191
     public function getInput($name)
192 192
     {
193
-        if (! isset($this->inputs[$name])) {
193
+        if (!isset($this->inputs[$name])) {
194 194
             throw new Exception\NoSuchInput($name);
195 195
         }
196 196
 
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
         // Iterate on fieldset or collection and get failures
364 364
         foreach ($this->inputs as $name => $input) {
365 365
             if ($input instanceof Fieldset || $input instanceof Collection) {
366
-                if (! $input->filter()) {
366
+                if (!$input->filter()) {
367 367
                     $this->success = false;
368 368
                     $failures = $input->getFailures();
369 369
                     if ($failures instanceof FailureCollectionInterface) {
Please login to merge, or discard this patch.
src/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  *
5 5
  * This file is part of the Aura project for PHP.
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     {
86 86
         $passed = true;
87 87
         foreach ($this->fieldsets as $key => $fieldset) {
88
-            if (! $fieldset->filter()) {
88
+            if (!$fieldset->filter()) {
89 89
                 $passed = false;
90 90
             }
91 91
         }
Please login to merge, or discard this patch.