@@ -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 | * |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | 'fields' => [ |
| 44 | 44 | 'latestReport' => [ |
| 45 | 45 | 'type' => $reportType, |
| 46 | - 'resolve' => static function () { |
|
| 46 | + 'resolve' => static function() { |
|
| 47 | 47 | return [ |
| 48 | 48 | 'title' => 'Accident #1', |
| 49 | 49 | 'time' => '13:30:12', |
@@ -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 | * |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $this->expectException(\Youshido\GraphQL\Exception\ConfigurationException::class); |
| 41 | 41 | |
| 42 | 42 | ConfigValidator::getInstance()->assertValidConfig( |
| 43 | - new InterfaceTypeConfig(['name' => 'Test', 'resolveType' => static function (): void { |
|
| 43 | + new InterfaceTypeConfig(['name' => 'Test', 'resolveType' => static function(): void { |
|
| 44 | 44 | }], null, true) |
| 45 | 45 | ); |
| 46 | 46 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | $interfaceConfig = new InterfaceTypeConfig([ |
| 70 | 70 | 'name' => 'Test', |
| 71 | 71 | 'fields' => ['id' => new IntType()], |
| 72 | - 'resolveType' => static function ($object) { |
|
| 72 | + 'resolveType' => static function($object) { |
|
| 73 | 73 | return $object->getType(); |
| 74 | 74 | }, |
| 75 | 75 | ], null, true); |
@@ -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 | * |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | ], |
| 90 | 90 | ]); |
| 91 | 91 | |
| 92 | - $finalConfig = new TestConfig(['name' => $name . 'final', 'resolve' => static function () { |
|
| 92 | + $finalConfig = new TestConfig(['name' => $name.'final', 'resolve' => static function() { |
|
| 93 | 93 | return []; |
| 94 | 94 | }], $object, true); |
| 95 | 95 | $this->assertEquals($finalConfig->getType(), null); |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | { |
| 112 | 112 | $this->expectException(\Youshido\GraphQL\Exception\ConfigurationException::class); |
| 113 | 113 | |
| 114 | - ConfigValidator::getInstance()->assertValidConfig(new TestConfig(['name' => 'Test' . 'final'], null, true)); |
|
| 114 | + ConfigValidator::getInstance()->assertValidConfig(new TestConfig(['name' => 'Test'.'final'], null, true)); |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | |
@@ -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 | * |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | $fieldConfig = new FieldConfig([ |
| 30 | 30 | 'name' => 'FirstName', |
| 31 | 31 | 'type' => new StringType(), |
| 32 | - 'resolve' => static function ($value, $args = [], $type = null) { |
|
| 32 | + 'resolve' => static function($value, $args = [], $type = null) { |
|
| 33 | 33 | return 'John'; |
| 34 | 34 | }, |
| 35 | 35 | ]); |
@@ -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 | * |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | [TypeService::TYPE_ANY_OBJECT, new StringType()], |
| 64 | 64 | [TypeService::TYPE_ANY_OBJECT, null, false], |
| 65 | 65 | |
| 66 | - [TypeService::TYPE_CALLABLE, static function (): void { |
|
| 66 | + [TypeService::TYPE_CALLABLE, static function(): void { |
|
| 67 | 67 | }], |
| 68 | 68 | [TypeService::TYPE_CALLABLE, null, false], |
| 69 | 69 | |
@@ -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 | * Date: 27.10.16. |
| 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 | * |
@@ -26,9 +26,9 @@ discard block |
||
| 26 | 26 | { |
| 27 | 27 | public function testMethods(): void |
| 28 | 28 | { |
| 29 | - $fetcher = new CallableFetcher(static function ($type, $id) { |
|
| 30 | - return ['name' => $type . ' Name', 'id' => $id]; |
|
| 31 | - }, static function ($object) { |
|
| 29 | + $fetcher = new CallableFetcher(static function($type, $id) { |
|
| 30 | + return ['name' => $type.' Name', 'id' => $id]; |
|
| 31 | + }, static function($object) { |
|
| 32 | 32 | return $object; |
| 33 | 33 | }); |
| 34 | 34 | $this->assertEquals([ |