Completed
Pull Request — master (#204)
by Ryan
11:34
created
Tests/Library/Config/InterfaceTypeConfigTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
Tests/Library/Config/ConfigTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Tests/Library/Config/FieldConfigTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
Tests/Library/Config/ObjectTypeConfigTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.
Tests/Library/Validator/TypeValidationRuleTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Tests/Library/Validator/SchemaValidatorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.
Tests/Library/Validator/RequestValidatorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
  */
Please login to merge, or discard this patch.
Tests/Library/Relay/CallableFetcherTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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([
Please login to merge, or discard this patch.
Tests/Library/Relay/NodeInterfaceTypeTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 namespace Youshido\Tests\Library\Relay;
15 15
 
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
         $this->assertNull($type->getFetcher());
36 36
         $this->assertNull($type->resolveType($testObject));
37 37
 
38
-        $fetcher = new CallableFetcher(static function (): void {
39
-        }, static function () {
38
+        $fetcher = new CallableFetcher(static function(): void {
39
+        }, static function() {
40 40
             return new TestObjectType();
41 41
         });
42 42
         $type->setFetcher($fetcher);
Please login to merge, or discard this patch.