@@ -68,11 +68,11 @@ discard block |
||
68 | 68 | return $this; |
69 | 69 | } |
70 | 70 | |
71 | - private function getObjectField(int|string $name, string|array $field): AbstractObjectField |
|
71 | + private function getObjectField(int | string $name, string | array $field): AbstractObjectField |
|
72 | 72 | { |
73 | 73 | $fieldName = $field['name'] ?? $name; |
74 | 74 | |
75 | - if (! is_string($fieldName)) { |
|
75 | + if (!is_string($fieldName)) { |
|
76 | 76 | throw new CantResolveObjectFieldException('Can\'t resolve ObjectField configuration: undefined name'); |
77 | 77 | } |
78 | 78 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | } |
82 | 82 | |
83 | 83 | if (is_array($field)) { |
84 | - if (! isset($field['type']) || ! is_string($field['type'])) { |
|
84 | + if (!isset($field['type']) || !is_string($field['type'])) { |
|
85 | 85 | throw new CantResolveObjectFieldException( |
86 | 86 | 'Can\'t resolve ObjectField configuration: undefined type', |
87 | 87 | ); |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | } |
156 | 156 | |
157 | 157 | if (is_array($callable)) { |
158 | - if (! isset($callable[0], $callable[1])) { |
|
158 | + if (!isset($callable[0], $callable[1])) { |
|
159 | 159 | throw new CantResolveObjectFieldException( |
160 | 160 | 'Can\'t resolve ObjectField configuration: resolve must be callable', |
161 | 161 | ); |
@@ -53,11 +53,11 @@ discard block |
||
53 | 53 | return $this; |
54 | 54 | } |
55 | 55 | |
56 | - private function getObjectField(int|string $name, string|array $field): AbstractObjectField |
|
56 | + private function getObjectField(int | string $name, string | array $field): AbstractObjectField |
|
57 | 57 | { |
58 | 58 | $fieldName = $field['name'] ?? $name; |
59 | 59 | |
60 | - if (! is_string($fieldName)) { |
|
60 | + if (!is_string($fieldName)) { |
|
61 | 61 | throw new CantResolveObjectFieldException('Can\'t resolve ObjectField configuration: undefined name'); |
62 | 62 | } |
63 | 63 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | } |
67 | 67 | |
68 | 68 | if (is_array($field)) { |
69 | - if (! isset($field['type']) || ! is_string($field['type'])) { |
|
69 | + if (!isset($field['type']) || !is_string($field['type'])) { |
|
70 | 70 | throw new CantResolveObjectFieldException( |
71 | 71 | 'Can\'t resolve ObjectField configuration: undefined type', |
72 | 72 | ); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | private function extract(array $config, string $class): mixed |
25 | 25 | { |
26 | - if (! isset($config['name'], $config['type'])) { |
|
26 | + if (!isset($config['name'], $config['type'])) { |
|
27 | 27 | return $config; |
28 | 28 | } |
29 | 29 |