@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | |
| 157 | 157 | $this->adapter->addData($data, $context); |
| 158 | 158 | |
| 159 | - if (! array_key_exists('errors', $this->getData())) { |
|
| 159 | + if (!array_key_exists('errors', $this->getData())) { |
|
| 160 | 160 | $this->setValidationErrors(); |
| 161 | 161 | } |
| 162 | 162 | |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | if (is_string($errors)) { |
| 186 | 186 | $errors = ['default' => $errors]; |
| 187 | 187 | } |
| 188 | - if (! ($errors instanceof ErrorBag)) { |
|
| 188 | + if (!($errors instanceof ErrorBag)) { |
|
| 189 | 189 | $errors = new ErrorBag($errors); |
| 190 | 190 | } |
| 191 | 191 | |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | |
| 226 | 226 | $this->adapter->setData($data, $context); |
| 227 | 227 | |
| 228 | - if (! array_key_exists('errors', $this->getData())) { |
|
| 228 | + if (!array_key_exists('errors', $this->getData())) { |
|
| 229 | 229 | $this->setValidationErrors(); |
| 230 | 230 | } |
| 231 | 231 | |
@@ -265,10 +265,10 @@ discard block |
||
| 265 | 265 | */ |
| 266 | 266 | public function setAdapter(string $adapter, array $config = []): self |
| 267 | 267 | { |
| 268 | - if (! array_key_exists($adapter, self::$validAdapters)) { |
|
| 268 | + if (!array_key_exists($adapter, self::$validAdapters)) { |
|
| 269 | 269 | $adapter = 'native'; |
| 270 | 270 | } |
| 271 | - if (empty($this->config['adapters']) || ! is_array($this->config['adapters'])) { |
|
| 271 | + if (empty($this->config['adapters']) || !is_array($this->config['adapters'])) { |
|
| 272 | 272 | $this->config['adapters'] = []; |
| 273 | 273 | } |
| 274 | 274 | |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | protected function decorate(string $output): string |
| 326 | 326 | { |
| 327 | 327 | foreach ($this->config['decorators'] as $decorator) { |
| 328 | - if (! is_subclass_of($decorator, ViewDecoratorInterface::class)) { |
|
| 328 | + if (!is_subclass_of($decorator, ViewDecoratorInterface::class)) { |
|
| 329 | 329 | throw ViewException::invalidDecorator($decorator); |
| 330 | 330 | } |
| 331 | 331 | |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | class {class} extends {extends} |
| 8 | 8 | { |
| 9 | -<?php if (! empty($invokable)): ?> |
|
| 9 | +<?php if (!empty($invokable)): ?> |
|
| 10 | 10 | /** |
| 11 | 11 | * Traitement |
| 12 | 12 | * |