@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | error_reporting(E_ALL); |
| 3 | 3 | $autoloader = __DIR__ . '/vendor/autoload.php'; |
| 4 | -if (! file_exists($autoloader)) { |
|
| 4 | +if (!file_exists($autoloader)) { |
|
| 5 | 5 | echo "Composer autoloader not found: $autoloader" . PHP_EOL; |
| 6 | 6 | echo "Please issue 'composer install' and try again." . PHP_EOL; |
| 7 | 7 | exit(1); |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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); |
@@ -1,5 +1,5 @@ |
||
| 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. |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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) { |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * |
| 5 | 5 | * This file is part of Aura for PHP. |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public function addMessagesForField($field, $messages) |
| 49 | 49 | { |
| 50 | - if (! isset($this->messages[$field])) { |
|
| 50 | + if (!isset($this->messages[$field])) { |
|
| 51 | 51 | $this->messages[$field] = []; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | public function getMessagesForField($field) |
| 82 | 82 | { |
| 83 | - if (! isset($this->messages[$field])) { |
|
| 83 | + if (!isset($this->messages[$field])) { |
|
| 84 | 84 | return array(); |
| 85 | 85 | } |
| 86 | 86 | |
@@ -1,5 +1,5 @@ discard block |
||
| 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. |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | public function newField($name, $type = null) |
| 76 | 76 | { |
| 77 | - if (! $type) { |
|
| 77 | + if (!$type) { |
|
| 78 | 78 | $type = 'text'; |
| 79 | 79 | } |
| 80 | 80 | $class = $this->field_class; |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public function newFieldset($name, $type = null) |
| 98 | 98 | { |
| 99 | - if (! $type) { |
|
| 99 | + if (!$type) { |
|
| 100 | 100 | $type = $name; |
| 101 | 101 | } |
| 102 | 102 | $factory = $this->fieldset_map[$type]; |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | */ |
| 119 | 119 | public function newCollection($name, $type = null) |
| 120 | 120 | { |
| 121 | - if (! $type) { |
|
| 121 | + if (!$type) { |
|
| 122 | 122 | $type = $name; |
| 123 | 123 | } |
| 124 | 124 | $class = $this->collection_class; |
@@ -1,5 +1,5 @@ discard block |
||
| 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. |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public function newInstance($name) |
| 58 | 58 | { |
| 59 | - if (! isset($this->map[$name])) { |
|
| 59 | + if (!isset($this->map[$name])) { |
|
| 60 | 60 | throw new Exception\NoSuchForm($name); |
| 61 | 61 | } |
| 62 | 62 | |