@@ -30,7 +30,7 @@ |
||
| 30 | 30 | $config['mutation'] = new InternalSchemaMutationObject(['name' => $this->getName($config) . 'Mutation']); |
| 31 | 31 | } |
| 32 | 32 | if (!array_key_exists('types', $config)) { |
| 33 | - $config['types'] = []; |
|
| 33 | + $config['types'] = []; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | $this->config = new SchemaConfig($config, $this); |
@@ -24,10 +24,10 @@ discard block |
||
| 24 | 24 | public function __construct($config = []) |
| 25 | 25 | { |
| 26 | 26 | if (!array_key_exists('query', $config)) { |
| 27 | - $config['query'] = new InternalSchemaQueryObject(['name' => $this->getName($config) . 'Query']); |
|
| 27 | + $config['query'] = new InternalSchemaQueryObject(['name' => $this->getName($config).'Query']); |
|
| 28 | 28 | } |
| 29 | 29 | if (!array_key_exists('mutation', $config)) { |
| 30 | - $config['mutation'] = new InternalSchemaMutationObject(['name' => $this->getName($config) . 'Mutation']); |
|
| 30 | + $config['mutation'] = new InternalSchemaMutationObject(['name' => $this->getName($config).'Mutation']); |
|
| 31 | 31 | } |
| 32 | 32 | if (!array_key_exists('types', $config)) { |
| 33 | 33 | $config['types'] = []; |
@@ -80,6 +80,6 @@ discard block |
||
| 80 | 80 | { |
| 81 | 81 | $defaultName = 'RootSchema'; |
| 82 | 82 | |
| 83 | - return isset($config["name"])? $config["name"] : $defaultName; |
|
| 83 | + return isset($config["name"]) ? $config["name"] : $defaultName; |
|
| 84 | 84 | } |
| 85 | 85 | } |