@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 10.05.16. |
| 15 | 15 | */ |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | $edgeFields = !empty($config['edgeFields']) ? $config['edgeFields'] : []; |
| 61 | 61 | |
| 62 | 62 | $edgeType = new ObjectType([ |
| 63 | - 'name' => $name . 'Edge', |
|
| 63 | + 'name' => $name.'Edge', |
|
| 64 | 64 | 'description' => 'An edge in a connection.', |
| 65 | 65 | 'fields' => \array_merge([ |
| 66 | 66 | 'node' => [ |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $connectionFields = !empty($config['connectionFields']) ? $config['connectionFields'] : []; |
| 93 | 93 | |
| 94 | 94 | $connectionType = new ObjectType([ |
| 95 | - 'name' => $name . 'Connection', |
|
| 95 | + 'name' => $name.'Connection', |
|
| 96 | 96 | 'description' => 'A connection to a list of items.', |
| 97 | 97 | 'fields' => \array_merge([ |
| 98 | 98 | 'pageInfo' => [ |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 17.05.16. |
| 15 | 15 | */ |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | $index = \array_search($object, $data, true); |
| 30 | 30 | |
| 31 | - return false === $index ? null : (string) self::keyToCursor($index); |
|
| 31 | + return false === $index ? null : (string)self::keyToCursor($index); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | public static function keyToCursor($key) |
| 48 | 48 | { |
| 49 | - return \base64_encode(self::PREFIX . $key); |
|
| 49 | + return \base64_encode(self::PREFIX.$key); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $offset = \array_search($key, \array_keys($array), true); |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | - return null === $offset ? $default : (int) $offset; |
|
| 104 | + return null === $offset ? $default : (int)$offset; |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | public static function connectionFromArray(array $data, array $args = []) |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of GraphQL project. |
| 15 | 15 | * |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of GraphQL project. |
| 15 | 15 | * |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of GraphQL project. |
| 15 | 15 | * |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of graphql-youshido project. |
| 15 | 15 | * |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of GraphQL project. |
| 15 | 15 | * |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of GraphQL project. |
| 15 | 15 | * |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of GraphQL project. |
| 15 | 15 | * |
@@ -31,11 +31,11 @@ discard block |
||
| 31 | 31 | public function __construct($config = []) |
| 32 | 32 | { |
| 33 | 33 | if (!\array_key_exists('query', $config)) { |
| 34 | - $config['query'] = new InternalSchemaQueryObject(['name' => $this->getName($config) . 'Query']); |
|
| 34 | + $config['query'] = new InternalSchemaQueryObject(['name' => $this->getName($config).'Query']); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | if (!\array_key_exists('mutation', $config)) { |
| 38 | - $config['mutation'] = new InternalSchemaMutationObject(['name' => $this->getName($config) . 'Mutation']); |
|
| 38 | + $config['mutation'] = new InternalSchemaMutationObject(['name' => $this->getName($config).'Mutation']); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | if (!\array_key_exists('types', $config)) { |