Completed
Pull Request — master (#204)
by Ryan
11:34
created
Tests/Schema/InputParseTest.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
 namespace Youshido\Tests\Schema;
15 15
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                             'from'   => new DateTimeType('Y-m-d H:i:s'),
41 41
                             'fromtz' => new DateTimeTzType(),
42 42
                         ],
43
-                        'resolve' => static function ($source, $args) {
43
+                        'resolve' => static function($source, $args) {
44 44
                             return \sprintf(
45 45
                                 'Result with %s date and %s tz',
46 46
                                 empty($args['from']) ? 'default' : $args['from']->format('Y-m-d H:i:s'),
Please login to merge, or discard this patch.
Tests/Library/Type/UnionTypeTest.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
  * Date: 13.05.16.
15 15
  */
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                 new TestObjectType(),
41 41
                 $object,
42 42
             ],
43
-            'resolveType' => static function ($type) {
43
+            'resolveType' => static function($type) {
44 44
                 return $type;
45 45
             },
46 46
         ]);
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             'types'       => [
76 76
                 'test', new IntType(),
77 77
             ],
78
-            'resolveType' => static function ($type) {
78
+            'resolveType' => static function($type) {
79 79
                 return $type;
80 80
             },
81 81
         ]);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             'types'       => [
94 94
                 new IntType(),
95 95
             ],
96
-            'resolveType' => static function ($type) {
96
+            'resolveType' => static function($type) {
97 97
                 return $type;
98 98
             },
99 99
         ]);
Please login to merge, or discard this patch.
Tests/Library/Type/ListTypeTest.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/Type/NonNullTypeTest.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/Type/ScalarTypeTest.php 1 patch
Spacing   +7 added lines, -7 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-youshido project.
15 15
  *
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         foreach (TypeFactory::getScalarTypesNames() as $typeName) {
34 34
             $scalarType     = TypeFactory::getScalarType($typeName);
35
-            $testDataMethod = 'get' . $typeName . 'TestData';
35
+            $testDataMethod = 'get'.$typeName.'TestData';
36 36
 
37 37
             $this->assertNotEmpty($scalarType->getDescription());
38 38
             $this->assertEquals($scalarType->getKind(), TypeMap::KIND_SCALAR);
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
                 $this->assertParse($scalarType, $data, $serialized, $typeName);
48 48
 
49 49
                 if ($isValid) {
50
-                    $this->assertTrue($scalarType->isValidValue($data), $typeName . ' validation for :' . \serialize($data));
50
+                    $this->assertTrue($scalarType->isValidValue($data), $typeName.' validation for :'.\serialize($data));
51 51
                 } else {
52
-                    $this->assertFalse($scalarType->isValidValue($data), $typeName . ' validation for :' . \serialize($data));
52
+                    $this->assertFalse($scalarType->isValidValue($data), $typeName.' validation for :'.\serialize($data));
53 53
                 }
54 54
             }
55 55
         }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         } catch (\Exception $e) {
60 60
             $this->assertEquals('Configuration problem with type invalid type', $e->getMessage());
61 61
         }
62
-        $this->assertEquals('String', (string) new StringType());
62
+        $this->assertEquals('String', (string)new StringType());
63 63
     }
64 64
 
65 65
     public function testDateTimeType(): void
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     private function assertSerialization(AbstractScalarType $object, $input, $expected): void
72 72
     {
73
-        $this->assertEquals($expected, $object->serialize($input), $object->getName() . ' serialize for: ' . \serialize($input));
73
+        $this->assertEquals($expected, $object->serialize($input), $object->getName().' serialize for: '.\serialize($input));
74 74
     }
75 75
 
76 76
     private function assertParse(AbstractScalarType $object, $input, $expected, $typeName): void
@@ -82,6 +82,6 @@  discard block
 block discarded – undo
82 82
             $parsed   = \DateTime::createFromFormat('Y-m-d H:i:s', $parsed->format('Y-m-d H:i:s'));
83 83
         }
84 84
 
85
-        $this->assertEquals($expected, $parsed, $object->getName() . ' parse for: ' . \serialize($input));
85
+        $this->assertEquals($expected, $parsed, $object->getName().' parse for: '.\serialize($input));
86 86
     }
87 87
 }
Please login to merge, or discard this patch.
Tests/Library/Type/EnumTypeTest.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: 12.05.16.
15 15
  */
Please login to merge, or discard this patch.
Tests/Library/Type/InputObjectTypeTest.php 1 patch
Spacing   +11 added lines, -11 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
                 'fields' => [
64 64
                     'empty' => [
65 65
                         'type'    => new StringType(),
66
-                        'resolve' => static function () {
66
+                        'resolve' => static function() {
67 67
                         },
68 68
                     ],
69 69
                 ],
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                             ])),
82 82
                         ],
83 83
                         'type'    => new BooleanType(),
84
-                        'resolve' => static function ($object, $args) {
84
+                        'resolve' => static function($object, $args) {
85 85
                             return true;
86 86
                         },
87 87
                     ],
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
                 'fields' => [
116 116
                     'empty' => [
117 117
                         'type'    => new StringType(),
118
-                        'resolve' => static function () {
118
+                        'resolve' => static function() {
119 119
                         },
120 120
                     ],
121 121
                 ],
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                             ]),
134 134
                         ],
135 135
                         'type'    => new BooleanType(),
136
-                        'resolve' => static function ($object, $args) {
136
+                        'resolve' => static function($object, $args) {
137 137
                             return true;
138 138
                         },
139 139
                     ],
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 'fields' => [
158 158
                     'empty' => [
159 159
                         'type'    => new StringType(),
160
-                        'resolve' => static function (): void {
160
+                        'resolve' => static function(): void {
161 161
                         },
162 162
                     ],
163 163
                 ],
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
                                 ],
181 181
                             ]),
182 182
                         ],
183
-                        'resolve' => static function () {
183
+                        'resolve' => static function() {
184 184
                             return 'success message';
185 185
                         },
186 186
                     ],
@@ -229,10 +229,10 @@  discard block
 block discarded – undo
229 229
                                 ],
230 230
                             ],
231 231
                         ],
232
-                        'resolve' => static function ($source, $args) {
232
+                        'resolve' => static function($source, $args) {
233 233
                             return [
234
-                                'limit is ' . $args['paging']['limit'],
235
-                                'offset is ' . $args['paging']['offset'],
234
+                                'limit is '.$args['paging']['limit'],
235
+                                'offset is '.$args['paging']['offset'],
236 236
                             ];
237 237
                         },
238 238
                     ],
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
                                 ],
277 277
                             ]),
278 278
                         ],
279
-                        'resolve' => static function ($source, $args) {
279
+                        'resolve' => static function($source, $args) {
280 280
                             return \sprintf('%s by %s', $args['title'], $args['userId']);
281 281
                         },
282 282
                     ],
Please login to merge, or discard this patch.
Tests/Library/Type/InterfaceTypeTest.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
  *
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             'fields' => [
59 59
                 'name' => new StringType(),
60 60
             ],
61
-            'resolveType' => static function ($object) {
61
+            'resolveType' => static function($object) {
62 62
                 return $object;
63 63
             },
64 64
         ]);
Please login to merge, or discard this patch.
Tests/Library/Type/ObjectTypeTest.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.