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 (#21)
by Jérémiah
09:19
created
Request/Validator/Rule/MaxQueryDepth.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@
 block discarded – undo
35 35
         $this->setMaxQueryDepth($maxQueryDepth);
36 36
     }
37 37
 
38
+    /**
39
+     * @param integer $maxQueryDepth
40
+     */
38 41
     public static function setMaxQueryDepth($maxQueryDepth)
39 42
     {
40 43
         static::$maxQueryDepth = (int) $maxQueryDepth;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $rootTypes = [$schema->getQueryType(), $schema->getMutationType(), $schema->getSubscriptionType()];
60 60
 
61 61
         return [
62
-            Node::FIELD => function (Field $node) use ($context, $rootTypes) {
62
+            Node::FIELD => function(Field $node) use ($context, $rootTypes) {
63 63
                 $parentType = $context->getParentType();
64 64
                 $type = $this->retrieveCurrentTypeFromValidationContext($context);
65 65
                 $isIntrospectionType = $type && $type->name === '__Schema';
@@ -73,8 +73,7 @@  discard block
 block discarded – undo
73 73
                             static::$maxQueryDepth + static::DEFAULT_MAX_COUNT_AFTER_DEPTH_LIMIT,
74 74
                             0,
75 75
                             true
76
-                        ) :
77
-                        0
76
+                        ) : 0
78 77
                     ;
79 78
 
80 79
                     if ($depth > static::$maxQueryDepth) {
Please login to merge, or discard this patch.
Tests/Functional/Controller/GraphControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 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.
Tests/Request/Validator/Rule/Schema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
                 'fields' => [
73 73
                     'firstName' => ['type' => Type::nonNull(Type::string())],
74 74
                     'Dog' => [
75
-                        'type' => function () {
75
+                        'type' => function() {
76 76
                             return Type::nonNull(
77 77
                                 Type::listOf(
78 78
                                     Type::nonNull(self::buildDogType())
Please login to merge, or discard this patch.