Completed
Push — master ( 5231d5...f954c7 )
by Alexandr
04:05 queued 01:38
created
src/Validator/ConfigValidator/ConfigValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     public function assertValidConfig(AbstractConfig $config)
54 54
     {
55 55
         if (!$this->isValidConfig($config)) {
56
-            throw new ConfigurationException('Config is not valid for ' . ($config->getContextObject() ? get_class($config->getContextObject()) : null) . "\n" . implode("\n", $this->getErrorsArray(false)));
56
+            throw new ConfigurationException('Config is not valid for '.($config->getContextObject() ? get_class($config->getContextObject()) : null)."\n".implode("\n", $this->getErrorsArray(false)));
57 57
         }
58 58
     }
59 59
 
Please login to merge, or discard this patch.
Tests/Issues/Issue99/Issue99Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
         self::assertTrue(isset($res['data']['items']));
24 24
 
25
-        foreach($res['data']['items'] as $item) {
25
+        foreach ($res['data']['items'] as $item) {
26 26
             self::assertTrue(isset($item['custom']['value']));
27 27
             self::assertEquals(self::BUG_NOT_EXISTS_VALUE, $item['custom']['value']);
28 28
         }
Please login to merge, or discard this patch.
Tests/Issues/Issue99/Issue99Schema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
                         'args'    => [
53 53
                             'example' => new StringType()
54 54
                         ],
55
-                        'resolve' => function () {
55
+                        'resolve' => function() {
56 56
                             return [
57 57
                                 ['id' => 1],
58 58
                                 ['id' => 2],
Please login to merge, or discard this patch.
Tests/Issues/Issue109/Issue109Schema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
                                 ]
41 41
                             ]
42 42
                         ]),
43
-                        'resolve' => function ($source, array $args, ResolveInfo $info) {
43
+                        'resolve' => function($source, array $args, ResolveInfo $info) {
44 44
                             $internalArgs = [
45 45
                                 'comment_id' => 200
46 46
                             ];
Please login to merge, or discard this patch.
Tests/Performance/NPlusOneTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             ['id' => 2, 'name' => 'Alex'],
32 32
             ['id' => 3, 'name' => 'Mike'],
33 33
         ];
34
-        $posts   = [];
34
+        $posts = [];
35 35
         for ($i = 0; $i < 10; $i++) {
36 36
             $posts[] = [
37 37
                 'id'     => $i + 1,
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 'fields' => [
68 68
                     'posts' => [
69 69
                         'type'    => new ListType($postType),
70
-                        'resolve' => function ($source, $args, $info) {
70
+                        'resolve' => function($source, $args, $info) {
71 71
                             return $this->getDataForPosts();
72 72
                         }
73 73
                     ]
Please login to merge, or discard this patch.
src/Relay/Connection/ArrayConnection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
         if (!is_array($data)) return null;
19 19
 
20 20
         $index = array_search($object, $data);
21
-        return $index === false ? null : (string) self::keyToCursor($index);
21
+        return $index === false ? null : (string)self::keyToCursor($index);
22 22
     }
23 23
 
24 24
     /**
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     public static function keyToCursor($key)
36 36
     {
37
-      return base64_encode(self::PREFIX . $key);
37
+      return base64_encode(self::PREFIX.$key);
38 38
     }
39 39
 
40 40
     /**
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
           $offset = array_search($key, array_keys($array));
87 87
         }
88 88
 
89
-        return is_null($offset) ? $default : (int) $offset;
89
+        return is_null($offset) ? $default : (int)$offset;
90 90
     }
91 91
 
92 92
     public static function connectionFromArray(array $data, array $args = [])
Please login to merge, or discard this patch.
Tests/Schema/SchemaTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         $this->assertEquals(1, count($schema->getMutationType()->getFields()));
38 38
 
39
-        $schema->addMutationField('changeUser', ['type' => new TestObjectType(), 'resolve' => function () {
39
+        $schema->addMutationField('changeUser', ['type' => new TestObjectType(), 'resolve' => function() {
40 40
         }]);
41 41
         $this->assertEquals(2, count($schema->getMutationType()->getFields()));
42 42
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             'fields'      => [
69 69
                 'name' => new StringType(),
70 70
             ],
71
-            'resolveType' => function () use ($authorType) {
71
+            'resolveType' => function() use ($authorType) {
72 72
                 return $authorType;
73 73
             }
74 74
         ]);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                 'fields' => [
88 88
                     'user' => [
89 89
                         'type'    => $userInterface,
90
-                        'resolve' => function () {
90
+                        'resolve' => function() {
91 91
                             return [
92 92
                                 'name' => 'Alex'
93 93
                             ];
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
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
     public function testInternalVariableArgument()
17 17
     {
18
-        $schema    = new Schema([
18
+        $schema = new Schema([
19 19
             'query' => new ObjectType([
20 20
                 'name'   => 'RootQuery',
21 21
                 'fields' => [
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
32 32
                                             'args'    => [
33 33
                                                 'size' => new NonNullType(new IntType()),
34 34
                                             ],
35
-                                            'resolve' => function ($source, $args) {
35
+                                            'resolve' => function($source, $args) {
36 36
                                                 $res = [];
37 37
                                                 foreach (range(1, $args['size']) as $i) {
38
-                                                    $res[] = 'Cursor #' . $i;
38
+                                                    $res[] = 'Cursor #'.$i;
39 39
                                                 }
40 40
 
41 41
                                                 return $res;
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                         'args'    => [
49 49
                             'first' => new IntType(),
50 50
                         ],
51
-                        'resolve' => function () {
51
+                        'resolve' => function() {
52 52
                             return [
53 53
                                 'pageInfo' => [
54 54
                                     'totalEdges' => 10,
Please login to merge, or discard this patch.
Tests/Library/Type/InputObjectTypeTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                 'fields' => [
56 56
                     'empty' => [
57 57
                         'type'    => new StringType(),
58
-                        'resolve' => function () {
58
+                        'resolve' => function() {
59 59
                             return null;
60 60
                         }
61 61
                     ]
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                             ]))
75 75
                         ],
76 76
                         'type'    => new BooleanType(),
77
-                        'resolve' => function ($object, $args) {
77
+                        'resolve' => function($object, $args) {
78 78
                             return true;
79 79
                         }
80 80
                     ]
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                 'fields' => [
109 109
                     'empty' => [
110 110
                         'type'    => new StringType(),
111
-                        'resolve' => function () {
111
+                        'resolve' => function() {
112 112
                             return null;
113 113
                         }
114 114
                     ]
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
                             ])
128 128
                         ],
129 129
                         'type'    => new BooleanType(),
130
-                        'resolve' => function ($object, $args) {
130
+                        'resolve' => function($object, $args) {
131 131
                             return true;
132 132
                         }
133 133
                     ]
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                 'fields' => [
152 152
                     'empty' => [
153 153
                         'type'    => new StringType(),
154
-                        'resolve' => function () {
154
+                        'resolve' => function() {
155 155
                         }
156 156
                     ],
157 157
                 ]
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
                                 ]
175 175
                             ])
176 176
                         ],
177
-                        'resolve' => function () {
177
+                        'resolve' => function() {
178 178
                             return 'success message';
179 179
                         }
180 180
                     ]
@@ -223,10 +223,10 @@  discard block
 block discarded – undo
223 223
                                 ],
224 224
                             ],
225 225
                         ],
226
-                        'resolve' => function ($source, $args) {
226
+                        'resolve' => function($source, $args) {
227 227
                             return [
228
-                                'limit is ' . $args['paging']['limit'],
229
-                                'offset is ' . $args['paging']['offset'],
228
+                                'limit is '.$args['paging']['limit'],
229
+                                'offset is '.$args['paging']['offset'],
230 230
                             ];
231 231
                         }
232 232
                     ],
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
                                 ]
271 271
                             ]),
272 272
                         ],
273
-                        'resolve' => function ($source, $args) {
273
+                        'resolve' => function($source, $args) {
274 274
                             return sprintf('%s by %s', $args['title'], $args['userId']);
275 275
                         }
276 276
                     ],
Please login to merge, or discard this patch.