@@ -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 |
@@ -66,11 +66,11 @@ discard block |
||
66 | 66 | return $this; |
67 | 67 | } |
68 | 68 | |
69 | - private function getObjectField(int|string $name, string|array $field): AbstractObjectField |
|
69 | + private function getObjectField(int | string $name, string | array $field): AbstractObjectField |
|
70 | 70 | { |
71 | 71 | $fieldName = $field['name'] ?? $name; |
72 | 72 | |
73 | - if (! is_string($fieldName)) { |
|
73 | + if (!is_string($fieldName)) { |
|
74 | 74 | throw new CantResolveObjectFieldException( |
75 | 75 | 'Can\'t resolve ObjectField: wrong configuration - undefined name', |
76 | 76 | ); |
@@ -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: wrong 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(sprintf( |
160 | 160 | 'Can\'t resolve ObjectField: wrong configuration - %s must be callable', |
161 | 161 | $option |
@@ -32,7 +32,7 @@ |
||
32 | 32 | yield $value; |
33 | 33 | } elseif (is_array($value)) { |
34 | 34 | $valueName = $value['name'] ?? $name; |
35 | - if (! is_string($valueName)) { |
|
35 | + if (!is_string($valueName)) { |
|
36 | 36 | throw new CantResolveEnumTypeException('Can\'t resolve EnumValue: wrong value configuration'); |
37 | 37 | } |
38 | 38 | yield new EnumValue( |
@@ -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( |
62 | 62 | 'Can\'t resolve ObjectField: wrong configuration - undefined name', |
63 | 63 | ); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | } |
69 | 69 | |
70 | 70 | if (is_array($field)) { |
71 | - if (! isset($field['type']) || ! is_string($field['type'])) { |
|
71 | + if (!isset($field['type']) || !is_string($field['type'])) { |
|
72 | 72 | throw new CantResolveObjectFieldException( |
73 | 73 | 'Can\'t resolve ObjectField: wrong configuration - undefined type', |
74 | 74 | ); |