Completed
Pull Request — master (#204)
by Ryan
11:34
created
Tests/StarWars/Schema/EpisodeEnum.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: 07.12.15.
15 15
  */
Please login to merge, or discard this patch.
Tests/StarWars/Schema/StarWarsSchema.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: 07.12.15.
15 15
  */
Please login to merge, or discard this patch.
Tests/StarWars/Schema/StarWarsQueryType.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: 07.12.15.
15 15
  */
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
                 'args' => [
39 39
                     'episode' => ['type' => new EpisodeEnum()],
40 40
                 ],
41
-                'resolve' => static function ($root, $args) {
41
+                'resolve' => static function($root, $args) {
42 42
                     return StarWarsData::getHero($args['episode'] ?? null);
43 43
                 },
44 44
             ])
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                 'args' => [
49 49
                     'id' => new IdType(),
50 50
                 ],
51
-                'resolve' => static function ($value = null, $args = []) {
51
+                'resolve' => static function($value = null, $args = []) {
52 52
                     $humans = StarWarsData::humans();
53 53
 
54 54
                     return $humans[$args['id']] ?? null;
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                 'args' => [
61 61
                     'id' => new IdType(),
62 62
                 ],
63
-                'resolve' => static function ($value = null, $args = []) {
63
+                'resolve' => static function($value = null, $args = []) {
64 64
                     $droids = StarWarsData::droids();
65 65
 
66 66
                     return $droids[$args['id']] ?? null;
Please login to merge, or discard this patch.
Tests/Issues/Issue151/Issue151Test.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\Issues\Issue116Test;
15 15
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $unionType = new UnionType([
44 44
             'name'        => 'Union',
45 45
             'types'       => [$type1, $type2],
46
-            'resolveType' => static function ($value) use ($type1, $type2) {
46
+            'resolveType' => static function($value) use ($type1, $type2) {
47 47
                 if (isset($value['name'])) {
48 48
                     return $type1;
49 49
                 }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                 'fields' => [
59 59
                     'list' => [
60 60
                         'type'    => new ListType($unionType),
61
-                        'resolve' => static function () {
61
+                        'resolve' => static function() {
62 62
                             return [
63 63
                                 [
64 64
                                     'id'   => 1,
Please login to merge, or discard this patch.
Tests/Issues/Issue116/Issue116Test.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
 namespace Youshido\Tests\Issues\Issue116Test;
15 15
 
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
                                             'args' => [
43 43
                                                 'size' => new NonNullType(new IntType()),
44 44
                                             ],
45
-                                            'resolve' => static function ($source, $args) {
45
+                                            'resolve' => static function($source, $args) {
46 46
                                                 $res = [];
47 47
 
48 48
                                                 foreach (\range(1, $args['size']) as $i) {
49
-                                                    $res[] = 'Cursor #' . $i;
49
+                                                    $res[] = 'Cursor #'.$i;
50 50
                                                 }
51 51
 
52 52
                                                 return $res;
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                         'args' => [
60 60
                             'first' => new IntType(),
61 61
                         ],
62
-                        'resolve' => static function () {
62
+                        'resolve' => static function() {
63 63
                             return [
64 64
                                 'pageInfo' => [
65 65
                                     'totalEdges' => 10,
Please login to merge, or discard this patch.
Tests/Issues/Issue109/Issue109Schema.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\Issues\Issue109;
15 15
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                                 ],
52 52
                             ],
53 53
                         ]),
54
-                        'resolve' => static function ($source, array $args, ResolveInfo $info) {
54
+                        'resolve' => static function($source, array $args, ResolveInfo $info) {
55 55
                             $internalArgs = [
56 56
                                 'comment_id' => 200,
57 57
                             ];
Please login to merge, or discard this patch.
Tests/Issues/Issue109/Issue109Test.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
 namespace Youshido\Tests\Issues\Issue109;
15 15
 
Please login to merge, or discard this patch.
Tests/Issues/Issue90/Issue90Schema.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\Issues\Issue90;
15 15
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
                         'args' => [
32 32
                             'date' => new DateTimeType('Y-m-d H:ia'),
33 33
                         ],
34
-                        'resolve' => static function ($value, $args, $info) {
34
+                        'resolve' => static function($value, $args, $info) {
35 35
                             if (isset($args['date'])) {
36 36
                                 return $args['date'];
37 37
                             }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                         'args' => [
51 51
                             'date' => new DateTimeType('Y-m-d H:ia'),
52 52
                         ],
53
-                        'resolve' => static function ($value, $args, $info) {
53
+                        'resolve' => static function($value, $args, $info) {
54 54
                             if (isset($args['date'])) {
55 55
                                 return $args['date'];
56 56
                             }
Please login to merge, or discard this patch.
Tests/Issues/Issue90/Issue90Test.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
 namespace Youshido\Tests\Issues\Issue90;
15 15
 
Please login to merge, or discard this patch.