@@ -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 | throw WrongType::withMessage("Missing field for this struct: {$name}:{$type}"); |
32 | 32 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | $type = $this->definition[$offset] ?? null; |
54 | 54 | |
55 | - if (! $type) { |
|
55 | + if (!$type) { |
|
56 | 56 | throw WrongType::withMessage("No type was configured for this field {$offset}"); |
57 | 57 | } |
58 | 58 |