Completed
Pull Request — master (#56)
by Frédéric G.
03:07
created
src/Schema/AbstractSchema.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,6 @@
 block discarded – undo
10 10
 
11 11
 
12 12
 use Youshido\GraphQL\Config\Schema\SchemaConfig;
13
-use Youshido\GraphQL\Type\Object\ObjectType;
14
-use Youshido\GraphQL\Type\TypeInterface;
15 13
 
16 14
 abstract class AbstractSchema
17 15
 {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
             $config['mutation'] = new InternalSchemaMutationObject(['name' => $this->getName() . 'Mutation']);
29 29
         }
30 30
         if (!array_key_exists('types', $config)) {
31
-          $config['types'] = [];
31
+            $config['types'] = [];
32 32
         }
33 33
 
34 34
         $this->config = new SchemaConfig($config, $this);
Please login to merge, or discard this patch.
src/Introspection/Field/TypesField.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         }
46 46
 
47 47
         foreach ($value->getTypes() as $type) {
48
-          $this->collectTypes($type);
48
+            $this->collectTypes($type);
49 49
         }
50 50
 
51 51
         return array_values($this->types);
Please login to merge, or discard this patch.
src/Relay/Connection/Connection.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -131,14 +131,14 @@
 block discarded – undo
131 131
 
132 132
     public static function getEdges($value)
133 133
     {
134
-      return isset($value['edges']) ? $value['edges'] : null;
134
+        return isset($value['edges']) ? $value['edges'] : null;
135 135
     }
136 136
 
137 137
     public static function getPageInfo($value) {
138
-      return isset($value['pageInfo']) ? $value['pageInfo'] : null;
138
+        return isset($value['pageInfo']) ? $value['pageInfo'] : null;
139 139
     }
140 140
 
141 141
     public static function getNode($value) {
142
-      return isset($value['node']) ? $value['node'] : null;
142
+        return isset($value['node']) ? $value['node'] : null;
143 143
     }
144 144
 }
Please login to merge, or discard this 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
         $edgeFields = !empty($config['edgeFields']) ? $config['edgeFields'] : [];
53 53
 
54 54
         $edgeType = new ObjectType([
55
-            'name'        => $name . 'Edge',
55
+            'name'        => $name.'Edge',
56 56
             'description' => 'An edge in a connection.',
57 57
             'fields'      => array_merge([
58 58
                 'node'   => [
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $connectionFields = !empty($config['connectionFields']) ? $config['connectionFields'] : [];
85 85
 
86 86
         $connectionType = new ObjectType([
87
-            'name'        => $name . 'Connection',
87
+            'name'        => $name.'Connection',
88 88
             'description' => 'A connection to a list of items.',
89 89
             'fields'      => array_merge([
90 90
                 'pageInfo' => [
Please login to merge, or discard this patch.