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

Test Failed
Pull Request — master (#4)
by Jérémiah
12: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.
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/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/Mutation/MutationField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
             'args'        => [
48 48
                 'input' => ['type' => Type::nonNull($inputType)],
49 49
             ],
50
-            'resolve' => function ($_, $input, $info) use ($mutateAndGetPayload, $name) {
50
+            'resolve' => function($_, $input, $info) use ($mutateAndGetPayload, $name) {
51 51
                 $payload = $mutateAndGetPayload($input['input'], $info);
52 52
                 $payload['clientMutationId'] = $input['input']['clientMutationId'];
53 53
 
Please login to merge, or discard this patch.
Relay/Connection/Output/ConnectionBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             $edges,
126 126
             new PageInfo(
127 127
                 $firstEdge instanceof Edge ? $firstEdge->cursor : null,
128
-                $lastEdge instanceof Edge  ? $lastEdge->cursor : null,
128
+                $lastEdge instanceof Edge ? $lastEdge->cursor : null,
129 129
                 $last !== null ? $startOffset > $lowerBound : false,
130 130
                 $first !== null ? $endOffset < $upperBound : false
131 131
             )
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         }
179 179
         $offset = static::cursorToOffset($cursor);
180 180
 
181
-        return !is_numeric($offset) ?  $defaultOffset : (int) $offset;
181
+        return !is_numeric($offset) ? $defaultOffset : (int) $offset;
182 182
     }
183 183
 
184 184
     /**
Please login to merge, or discard this patch.
Error/ErrorHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      */
45 45
     private function getDefaultErrorHandler()
46 46
     {
47
-        return function (array $errors, $throwRawException) {
47
+        return function(array $errors, $throwRawException) {
48 48
             $clean = [];
49 49
 
50 50
             /** @var Error $error */
Please login to merge, or discard this patch.
DependencyInjection/OverblogGraphQLExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
         // from config
104 104
         if (!empty($config['definitions']['mappings']['types'])) {
105 105
             $typesMappings = array_filter(array_map(
106
-                function (array $typeMapping) use ($container) {
106
+                function(array $typeMapping) use ($container) {
107 107
 
108
-                    $params = $this->detectConfigFiles($container, $typeMapping['dir'],  $typeMapping['type']);
108
+                    $params = $this->detectConfigFiles($container, $typeMapping['dir'], $typeMapping['type']);
109 109
 
110 110
                     return $params;
111 111
                 },
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
                     case 'xml':
149 149
                         try {
150 150
                             //@todo fix xml validateSchema
151
-                            $xml = XmlUtils::loadFile($file->getRealPath());//, array($this, 'validateSchema'));
151
+                            $xml = XmlUtils::loadFile($file->getRealPath()); //, array($this, 'validateSchema'));
152 152
                             foreach ($xml->documentElement->childNodes as $node) {
153 153
                                 if (!$node instanceof \DOMElement) {
154 154
                                     continue;
Please login to merge, or discard this patch.