Passed
Push — master ( 907d81...3fd471 )
by Max
04:15
created
tests/Utils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         }
23 23
 
24 24
         // Toss out the first and last lines.
25
-        $lines = array_slice($lines, 1, count($lines) - 2);
25
+        $lines = array_slice($lines, 1, count($lines)-2);
26 26
 
27 27
         // take the tabs from the first line, and subtract them from all lines
28 28
         $matches = [];
Please login to merge, or discard this patch.
src/Type/Definition/ValidatedFieldDefinition.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             'name' => $name,
64 64
             'resolve' => function ($value, $args1, $context, $info) use ($config, $args) {
65 65
                 // validate inputs
66
-                $config['type']  = new InputObjectType([
66
+                $config['type'] = new InputObjectType([
67 67
                     'name'=>'',
68 68
                     'fields' => $args,
69 69
                 ]);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         if ($arr === []) {
89 89
             return false;
90 90
         }
91
-        return array_keys($arr) !== range(0, count($arr) - 1);
91
+        return array_keys($arr) !== range(0, count($arr)-1);
92 92
     }
93 93
 
94 94
     /**
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                 $newPath[]            = 0;
107 107
                 $this->_validateItems($subValue, $newPath, $validate);
108 108
             } else {
109
-                $path[count($path) - 1] = $idx;
109
+                $path[count($path)-1] = $idx;
110 110
                 $err                    = $validate($subValue);
111 111
 
112 112
                 if ($err) {
Please login to merge, or discard this patch.
tests/Type/ValidatedFieldDefinition/ListOfInputObjectValidationTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,10 +101,10 @@
 block discarded – undo
101 101
                                 'bookAttributes' => [
102 102
                                     'type' => Type::listOf($this->bookAttributesInputType),
103 103
                                     'validate' => static function ($var) {
104
-                                        return $var ? 0: 1;
104
+                                        return $var ? 0 : 1;
105 105
                                     },
106 106
                                     'validateItem' => static function ($book) {
107
-                                        return isset($book['author']) || isset($book['title']) ? 0: 1;
107
+                                        return isset($book['author']) || isset($book['title']) ? 0 : 1;
108 108
                                     },
109 109
                                 ],
110 110
                             ],
Please login to merge, or discard this patch.
tests/Type/ValidatedFieldDefinition/ListOfScalarValidationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
                             [
107 107
                                 'suberrors' =>
108 108
                                     [
109
-                                        'path' => [0,1],
109
+                                        'path' => [0, 1],
110 110
                                         'code' => 'invalidPhoneNumber',
111 111
                                     ],
112 112
                             ],
Please login to merge, or discard this patch.
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.