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
Branch fix_dump_schema_cmd_default_fi... (15dace)
by Jérémiah
24:40
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   +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.
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/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.
Relay/Node/PluralIdentifyingRootField.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,15 +43,14 @@
 block discarded – undo
43 43
             'description' => isset($config['description']) ? $config['description'] : null,
44 44
             'type' => Type::listOf($config['outputType']),
45 45
             'args' => $inputArgs,
46
-            'resolve' => function ($obj, $args, $info) use ($config) {
46
+            'resolve' => function($obj, $args, $info) use ($config) {
47 47
                 $inputs = $args[$config['argName']];
48 48
 
49 49
                 $data = [];
50 50
 
51 51
                 foreach ($inputs as $input) {
52 52
                     $data[$input] = is_callable($config['resolveSingleInput']) ?
53
-                        call_user_func_array($config['resolveSingleInput'], [$input, $info]) :
54
-                        null;
53
+                        call_user_func_array($config['resolveSingleInput'], [$input, $info]) : null;
55 54
                 }
56 55
 
57 56
                 return $data;
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.
Tests/DIContainerMockTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
 
14 14
 trait DIContainerMockTrait
15 15
 {
16
+    /**
17
+     * @return null|\Symfony\Component\DependencyInjection\ContainerInterface
18
+     */
16 19
     private function getDIContainerMock(array $services = [], array $parameters = [])
17 20
     {
18 21
         $container = $this->getMock('Symfony\\Component\\DependencyInjection\\Container', ['get', 'getParameter', 'has']);
Please login to merge, or discard this patch.