@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | public function set(array $data): self |
27 | 27 | { |
28 | 28 | foreach ($this->definition as $name => $type) { |
29 | - if (! array_key_exists($name, $data)) { |
|
29 | + if (!array_key_exists($name, $data)) { |
|
30 | 30 | $type = serialize($type); |
31 | 31 | |
32 | 32 | throw WrongType::withMessage("Missing field for this struct: {$name}:{$type}"); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | $type = $this->definition[$offset] ?? null; |
55 | 55 | |
56 | - if (! $type) { |
|
56 | + if (!$type) { |
|
57 | 57 | throw WrongType::withMessage("No type was configured for this field {$offset}"); |
58 | 58 | } |
59 | 59 |