Passed
Pull Request — master (#30)
by Andrey
02:26
created
src/Type/AbstractObjectType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,11 +68,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 );
Please login to merge, or discard this patch.
src/Type/AbstractInterfaceType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,11 +53,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                 );
Please login to merge, or discard this patch.
src/Field/FieldExtractorTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.