@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | public function set(array $data): self |
| 25 | 25 | { |
| 26 | 26 | foreach ($this->definition as $name => $type) { |
| 27 | - if (! array_key_exists($name, $data)) { |
|
| 27 | + if (!array_key_exists($name, $data)) { |
|
| 28 | 28 | throw WrongType::fromMessage("Missing field for this struct: {$name}:{$type}"); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | $type = $this->definition[$offset] ?? null; |
| 51 | 51 | |
| 52 | - if (! $type) { |
|
| 52 | + if (!$type) { |
|
| 53 | 53 | throw WrongType::fromMessage("No type was configured for this field {$offset}"); |
| 54 | 54 | } |
| 55 | 55 | |