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
Push — master ( 4a88d6...7c581d )
by Jérémiah
04:13
created
DependencyInjection/TypesConfiguration.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -121,6 +121,9 @@
 block discarded – undo
121 121
         return $node;
122 122
     }
123 123
 
124
+    /**
125
+     * @param string $name
126
+     */
124 127
     private function addFieldsSelection($name, $enabledBuilder = true)
125 128
     {
126 129
         $builder = new TreeBuilder();
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -86,9 +86,9 @@  discard block
 block discarded – undo
86 86
             ->variableNode('resolveNode')->end()
87 87
         ->end()
88 88
         ->validate()
89
-            ->always(function ($v) {
89
+            ->always(function($v) {
90 90
                 // remove all empty value
91
-                $array_filter_recursive = function ($input) use (&$array_filter_recursive) {
91
+                $array_filter_recursive = function($input) use (&$array_filter_recursive) {
92 92
                     foreach ($input as $key => &$value) {
93 93
                         if ('defaultValue' === $key) {
94 94
                             continue;
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             ->prototype('array')
131 131
                 ->beforeNormalization()
132 132
                     ->ifString()
133
-                    ->then(function ($v) { return array('builder' => $v); })
133
+                    ->then(function($v) { return array('builder' => $v); })
134 134
                 ->end()
135 135
                 ->children()
136 136
                     ->append($this->addTypeSelection())
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
                         ->info('Use to build dynamic args. Can be combine with args.')
139 139
                         ->beforeNormalization()
140 140
                             ->ifString()
141
-                            ->then(function ($v) { return array('name' => $v); })
141
+                            ->then(function($v) { return array('name' => $v); })
142 142
                         ->end()
143 143
                         ->children()
144 144
                             ->scalarNode('name')
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
             ->end();
184 184
 
185 185
         $node->validate()
186
-            ->ifTrue(function ($fields) use ($enabledBuilder) {
186
+            ->ifTrue(function($fields) use ($enabledBuilder) {
187 187
                 foreach ($fields as $v) {
188 188
                     if (empty($v['type']) && $enabledBuilder && empty($v['builder'])) {
189 189
                         return true;
Please login to merge, or discard this patch.
Resolver/ConfigResolver.php 2 patches
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -246,6 +246,9 @@  discard block
 block discarded – undo
246 246
         return $type;
247 247
     }
248 248
 
249
+    /**
250
+     * @param callable $expression
251
+     */
249 252
     private function resolveAccessAndWrapResolveCallback($expression, callable $resolveCallback = null)
250 253
     {
251 254
         return function () use ($expression, $resolveCallback) {
@@ -271,6 +274,10 @@  discard block
 block discarded – undo
271 274
             if (is_array($result) || $result instanceof \ArrayAccess) {
272 275
                 $result = array_filter(
273 276
                     array_map(
277
+
278
+                        /**
279
+                         * @param callable $object
280
+                         */
274 281
                         function ($object) use ($checkAccess) {
275 282
                             return $checkAccess($object) ? $object : null;
276 283
                         },
@@ -279,6 +286,10 @@  discard block
 block discarded – undo
279 286
                 );
280 287
             } elseif ($result instanceof Connection) {
281 288
                 $result->edges = array_map(
289
+
290
+                    /**
291
+                     * @param callable $edge
292
+                     */
282 293
                     function (Edge $edge) use ($checkAccess) {
283 294
                         $edge->node = $checkAccess($edge->node) ? $edge->node : null;
284 295
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
     private function resolveTypeCallback($expr)
214 214
     {
215
-        return function () use ($expr) {
215
+        return function() use ($expr) {
216 216
             return $this->resolveType($expr);
217 217
         };
218 218
     }
@@ -248,14 +248,14 @@  discard block
 block discarded – undo
248 248
 
249 249
     private function resolveAccessAndWrapResolveCallback($expression, callable $resolveCallback = null)
250 250
     {
251
-        return function () use ($expression, $resolveCallback) {
251
+        return function() use ($expression, $resolveCallback) {
252 252
             $args = func_get_args();
253 253
 
254
-            $result = null !== $resolveCallback  ? call_user_func_array($resolveCallback, $args) : null;
254
+            $result = null !== $resolveCallback ? call_user_func_array($resolveCallback, $args) : null;
255 255
 
256 256
             $values = call_user_func_array([$this, 'resolveResolveCallbackArgs'], $args);
257 257
 
258
-            $checkAccess = function ($object) use ($expression, $values) {
258
+            $checkAccess = function($object) use ($expression, $values) {
259 259
                 try {
260 260
                     $access = $this->resolveUsingExpressionLanguageIfNeeded(
261 261
                         $expression,
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
             if (is_array($result) || $result instanceof \ArrayAccess) {
272 272
                 $result = array_filter(
273 273
                     array_map(
274
-                        function ($object) use ($checkAccess) {
274
+                        function($object) use ($checkAccess) {
275 275
                             return $checkAccess($object) ? $object : null;
276 276
                         },
277 277
                         $result
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
                 );
280 280
             } elseif ($result instanceof Connection) {
281 281
                 $result->edges = array_map(
282
-                    function (Edge $edge) use ($checkAccess) {
282
+                    function(Edge $edge) use ($checkAccess) {
283 283
                         $edge->node = $checkAccess($edge->node) ? $edge->node : null;
284 284
 
285 285
                         return $edge;
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
             return $value;
301 301
         }
302 302
 
303
-        return function () use ($value) {
303
+        return function() use ($value) {
304 304
             $args = func_get_args();
305 305
             $result = $this->resolveUsingExpressionLanguageIfNeeded(
306 306
                 $value,
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
 
350 350
     private function resolveUsingExpressionLanguageIfNeeded($expression, array $values = [])
351 351
     {
352
-        if (is_string($expression) &&  0 === strpos($expression, '@=')) {
352
+        if (is_string($expression) && 0 === strpos($expression, '@=')) {
353 353
             return $this->expressionLanguage->evaluate(substr($expression, 2), $values);
354 354
         }
355 355
 
Please login to merge, or discard this patch.
Definition/MergeFieldTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 {
16 16
     protected function getFieldsWithDefaults($fields, array $defaultFields, $forceArray = true)
17 17
     {
18
-        $callback = function () use ($fields, $defaultFields) {
18
+        $callback = function() use ($fields, $defaultFields) {
19 19
             if (empty($fields)) {
20 20
                 return $defaultFields;
21 21
             }
Please login to merge, or discard this patch.
Tests/Error/ErrorHandlerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
             ]
140 140
         );
141 141
 
142
-        $this->errorHandler->setErrorHandler(function () {
142
+        $this->errorHandler->setErrorHandler(function() {
143 143
             return [new Error('Override Error')];
144 144
         });
145 145
 
Please login to merge, or discard this patch.
Tests/Functional/Relay/Connection/ConnectionTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $expectedData = [
50 50
             'user' => [
51 51
                 'friends' => [
52
-                   'totalCount' => 4,
52
+                    'totalCount' => 4,
53 53
                     'edges'     => [
54 54
                         [
55 55
                             'friendshipTime' => 'Yesterday',
Please login to merge, or discard this patch.
Relay/Node/RawIdField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             'name'        => $name,
33 33
             'description' => 'The raw ID of an object',
34 34
             'type'        => Type::nonNull(Type::int()),
35
-            'resolve'     => function ($obj, $args, ResolveInfo $info) use ($idFetcher) {
35
+            'resolve'     => function($obj, $args, ResolveInfo $info) use ($idFetcher) {
36 36
                 return is_callable($idFetcher) ? $idFetcher($obj, $info) : $obj->id;
37 37
             },
38 38
         ];
Please login to merge, or discard this patch.
Relay/Node/GlobalIdField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             'name'        => $name,
35 35
             'description' => 'The ID of an object',
36 36
             'type'        => Type::nonNull(Type::id()),
37
-            'resolve'     => function ($obj, $args, ResolveInfo $info) use ($idFetcher, $typeName) {
37
+            'resolve'     => function($obj, $args, ResolveInfo $info) use ($idFetcher, $typeName) {
38 38
                 return GlobalId::toGlobalId(
39 39
                     !empty($typeName) ? $typeName : $info->parentType->name,
40 40
                     is_callable($idFetcher) ? call_user_func_array($idFetcher, [$obj, $info]) : (is_object($obj) ? $obj->id : $obj['id'])
Please login to merge, or discard this patch.
Relay/Node/NodeField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             'args'        => [
37 37
                 'id' => ['type' => Type::nonNull(Type::id()), 'description' => 'The ID of an object'],
38 38
             ],
39
-            'resolve' => function ($obj, $args, $info) use ($idFetcher) {
39
+            'resolve' => function($obj, $args, $info) use ($idFetcher) {
40 40
                 if (empty($args['id'])) {
41 41
                     throw new \InvalidArgumentException(
42 42
                         'Argument "id" is required but not provided.'
Please login to merge, or discard this patch.
Relay/Node/PluralIdentifyingRootField.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,15 +41,14 @@
 block discarded – undo
41 41
             'description' => isset($config['description']) ? $config['description'] : null,
42 42
             'type'        => Type::listOf($config['outputType']),
43 43
             'args'        => $inputArgs,
44
-            'resolve'     => function ($obj, $args, $info) use ($config) {
44
+            'resolve'     => function($obj, $args, $info) use ($config) {
45 45
                 $inputs = $args[$config['argName']];
46 46
 
47 47
                 $data = [];
48 48
 
49 49
                 foreach ($inputs as $input) {
50 50
                     $data[$input] = is_callable($config['resolveSingleInput']) ?
51
-                        call_user_func_array($config['resolveSingleInput'], [$input, $info]) :
52
-                        null;
51
+                        call_user_func_array($config['resolveSingleInput'], [$input, $info]) : null;
53 52
                 }
54 53
 
55 54
                 return $data;
Please login to merge, or discard this patch.