@@ -42,13 +42,13 @@ |
||
| 42 | 42 | |
| 43 | 43 | public function offsetSet($offset, $value) |
| 44 | 44 | { |
| 45 | - if ($offset === null || ! is_numeric($offset)) { |
|
| 45 | + if ($offset === null || !is_numeric($offset)) { |
|
| 46 | 46 | throw WrongType::withMessage('You must specify a numeric offset'); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | $type = $this->types[$offset] ?? null; |
| 50 | 50 | |
| 51 | - if (! $type) { |
|
| 51 | + if (!$type) { |
|
| 52 | 52 | throw WrongType::withMessage("No type was configured for this tuple at offset {$offset}"); |
| 53 | 53 | } |
| 54 | 54 | |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | public function __invoke($value) |
| 21 | 21 | { |
| 22 | 22 | if ( |
| 23 | - ! $value instanceof $this->type |
|
| 23 | + !$value instanceof $this->type |
|
| 24 | 24 | ) { |
| 25 | 25 | throw WrongType::withMessage("must be of type {$this->type}"); |
| 26 | 26 | } |
@@ -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 | |