Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Pull Request — master (#19)
by Jérémiah
09:24
created
Resolver/Config/TypeConfigSolution.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
     public function solveTypeCallback($values)
20 20
     {
21
-        return function () use ($values) {
21
+        return function() use ($values) {
22 22
             return $this->solveType($values);
23 23
         };
24 24
     }
Please login to merge, or discard this patch.
Tests/Resolver/Config/FieldsConfigSolutionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
     private function invokeResolveAccessAndWrapResolveCallback($hasAccess, callable $callback = null)
164 164
     {
165 165
         if (null === $callback) {
166
-            $callback = function ($value) {
166
+            $callback = function($value) {
167 167
                 return $value;
168 168
             };
169 169
         }
Please login to merge, or discard this patch.
Tests/Definition/MergeFieldTraitTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                 ['foo'],
47 47
             ],
48 48
             [
49
-                function () {
49
+                function() {
50 50
                     return ['test'];
51 51
                 },
52 52
                 ['bar'],
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
     public function testGetFieldsWithDefaultsForceArray()
66 66
     {
67
-        $fields = $this->getFieldsWithDefaults(function () { return ['bar']; }, ['toto'], false);
67
+        $fields = $this->getFieldsWithDefaults(function() { return ['bar']; }, ['toto'], false);
68 68
         $this->assertInstanceOf('Closure', $fields);
69 69
         $this->assertEquals(['bar', 'toto'], $fields());
70 70
     }
Please login to merge, or discard this patch.
Resolver/Config/FieldsConfigSolution.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -151,10 +151,10 @@  discard block
 block discarded – undo
151 151
 
152 152
     private function resolveAccessAndWrapResolveCallback($expression, callable $resolveCallback = null)
153 153
     {
154
-        return function () use ($expression, $resolveCallback) {
154
+        return function() use ($expression, $resolveCallback) {
155 155
             $args = func_get_args();
156 156
 
157
-            $result = null !== $resolveCallback  ? call_user_func_array($resolveCallback, $args) : null;
157
+            $result = null !== $resolveCallback ? call_user_func_array($resolveCallback, $args) : null;
158 158
 
159 159
             $values = call_user_func_array([$this, 'solveResolveCallbackArgs'], $args);
160 160
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
             case is_array($result) || $result instanceof \ArrayAccess:
171 171
                 $result = array_filter(
172 172
                     array_map(
173
-                        function ($object) use ($checkAccess) {
173
+                        function($object) use ($checkAccess) {
174 174
                             return $checkAccess($object) ? $object : null;
175 175
                         },
176 176
                         $result
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 
181 181
             case $result instanceof Connection:
182 182
                 $result->edges = array_map(
183
-                    function (Edge $edge) use ($checkAccess) {
183
+                    function(Edge $edge) use ($checkAccess) {
184 184
                         $edge->node = $checkAccess($edge->node) ? $edge->node : null;
185 185
 
186 186
                         return $edge;
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 
200 200
     private function checkAccessCallback($expression, $values)
201 201
     {
202
-        return function ($object, $throwException = false) use ($expression, $values) {
202
+        return function($object, $throwException = false) use ($expression, $values) {
203 203
             try {
204 204
                 $access = $this->solveUsingExpressionLanguageIfNeeded(
205 205
                     $expression,
Please login to merge, or discard this patch.
DependencyInjection/OverblogGraphQLTypesExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $typesConfig = [];
77 77
         /** @var SplFileInfo $file */
78 78
         foreach ($files as $file) {
79
-            $typesConfig =  array_merge(
79
+            $typesConfig = array_merge(
80 80
                 $typesConfig,
81 81
                 'yml' === $type ? $this->typesConfigFromYml($file, $container) : $this->typesConfigFromXml($file, $container)
82 82
             );
@@ -132,9 +132,9 @@  discard block
 block discarded – undo
132 132
         // from config
133 133
         if (!empty($config['definitions']['mappings']['types'])) {
134 134
             $typesMappings = array_filter(array_map(
135
-                function (array $typeMapping) use ($container) {
135
+                function(array $typeMapping) use ($container) {
136 136
 
137
-                    $params = $this->detectConfigFiles($container, $typeMapping['dir'],  $typeMapping['type']);
137
+                    $params = $this->detectConfigFiles($container, $typeMapping['dir'], $typeMapping['type']);
138 138
 
139 139
                     return $params;
140 140
                 },
Please login to merge, or discard this patch.
DependencyInjection/TypesConfiguration.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
                 ->useAttributeAsKey('name')
71 71
                 ->prototype('array')
72 72
                     ->beforeNormalization()
73
-                        ->ifTrue(function ($v) { return !is_null($v) && !is_array($v); })
74
-                        ->then(function ($v) { return ['value' => $v]; })
73
+                        ->ifTrue(function($v) { return !is_null($v) && !is_array($v); })
74
+                        ->then(function($v) { return ['value' => $v]; })
75 75
                     ->end()
76 76
                     ->isRequired()
77 77
                     ->children()
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 93
             ->variableNode('resolveNode')->end()
94 94
         ->end()
95 95
         ->validate()
96
-            ->always(function ($v) {
96
+            ->always(function($v) {
97 97
                 // remove all empty value
98
-                $array_filter_recursive = function ($input) use (&$array_filter_recursive) {
98
+                $array_filter_recursive = function($input) use (&$array_filter_recursive) {
99 99
                     foreach ($input as $key => &$value) {
100 100
                         if ('defaultValue' === $key) {
101 101
                             continue;
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             ->prototype('array')
138 138
                 ->beforeNormalization()
139 139
                     ->ifString()
140
-                    ->then(function ($v) { return ['builder' => $v]; })
140
+                    ->then(function($v) { return ['builder' => $v]; })
141 141
                 ->end()
142 142
                 ->children()
143 143
                     ->append($this->addTypeSelection())
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                         ->info('Use to build dynamic args. Can be combine with args.')
146 146
                         ->beforeNormalization()
147 147
                             ->ifString()
148
-                            ->then(function ($v) { return ['builder' => $v]; })
148
+                            ->then(function($v) { return ['builder' => $v]; })
149 149
                         ->end()
150 150
                         ->children()
151 151
                             ->scalarNode('builder')
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             ->end();
191 191
 
192 192
         $node->validate()
193
-            ->ifTrue(function ($fields) use ($enabledBuilder) {
193
+            ->ifTrue(function($fields) use ($enabledBuilder) {
194 194
                 foreach ($fields as $v) {
195 195
                     if (empty($v['type']) && $enabledBuilder && empty($v['builder'])) {
196 196
                         return true;
Please login to merge, or discard this patch.
Tests/Functional/Controller/GraphControllerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     {
143 143
         $client = static::createClient(['test_case' => 'connection']);
144 144
 
145
-        $query = $this->friendsQuery . "\n" .$this->friendsTotalCountQuery;
145
+        $query = $this->friendsQuery."\n".$this->friendsTotalCountQuery;
146 146
 
147 147
         $client->request('POST', '/', ['query' => $query, 'operationName' => 'FriendsQuery'], [], ['CONTENT_TYPE' => 'application/x-www-form-urlencoded']);
148 148
         $result = $client->getResponse()->getContent();
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         $client->request('POST', '/?batch', [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($data));
166 166
         $result = $client->getResponse()->getContent();
167 167
 
168
-        $expected  = [
168
+        $expected = [
169 169
             'friends' => ['data' => $this->expectedData],
170 170
             'friendsTotalCount' => ['data' => ['user' => ['friends' => ['totalCount' => 4]]]],
171 171
         ];
Please login to merge, or discard this patch.
Request/BatchParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             throw new BadRequestHttpException('Must provide at least one valid query.');
30 30
         }
31 31
 
32
-        foreach($data as $i => &$entry) {
32
+        foreach ($data as $i => &$entry) {
33 33
             if (empty($entry[static::PARAM_QUERY]) || !is_string($entry[static::PARAM_QUERY])) {
34 34
                 throw new BadRequestHttpException(sprintf('No valid query found in node "%s"', $i));
35 35
             }
Please login to merge, or discard this patch.
Request/ParserInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
 interface ParserInterface
18 18
 {
19
-    const CONTENT_TYPE_GRAPHQL ='application/graphql';
19
+    const CONTENT_TYPE_GRAPHQL = 'application/graphql';
20 20
     const CONTENT_TYPE_JSON = 'application/json';
21 21
     const CONTENT_TYPE_FORM = 'application/x-www-form-urlencoded';
22 22
     const CONTENT_TYPE_FORM_DATA = 'multipart/form-data';
Please login to merge, or discard this patch.