@@ -10,8 +10,6 @@ |
||
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 | { |
@@ -28,7 +28,7 @@ |
||
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); |
@@ -45,7 +45,7 @@ |
||
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); |
@@ -131,14 +131,14 @@ |
||
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 | } |
@@ -52,7 +52,7 @@ discard block |
||
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 |
||
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' => [ |