Passed
Push — master ( 907d81...3fd471 )
by Max
04:15
created
tests/Type/UserErrorsType/NonNullTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
                     'authorId' => [
60 60
                         'type' => Type::id(),
61 61
                         'description' => 'An author Id',
62
-                        'validate' => static function($authorId) {
62
+                        'validate' => static function ($authorId) {
63 63
                             return !empty($authorId);
64 64
                         }
65 65
                     ],
Please login to merge, or discard this patch.
src/Type/Definition/UserErrorsType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     protected function _getType($config): Type {
54 54
         $type = $config['type'];
55
-        if($type instanceof NonNull) {
55
+        if ($type instanceof NonNull) {
56 56
             $type = $type->getWrappedType();
57 57
         }
58 58
         return $type;
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $fields = [];
89 89
         foreach ($type->getFields() as $key => $field) {
90 90
             $newType = static::create(
91
-                $field->config + ['typeSetter' => $config['typeSetter'] ?? null],
91
+                $field->config+['typeSetter' => $config['typeSetter'] ?? null],
92 92
                 array_merge($path, [$key])
93 93
             );
94 94
 
Please login to merge, or discard this patch.