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 (#35)
by Jérémiah
13:35
created
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.
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   +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.
DependencyInjection/Configuration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -111,12 +111,12 @@
 block discarded – undo
111 111
         $node
112 112
             ->info('Disabled if equal to false.')
113 113
             ->beforeNormalization()
114
-                ->ifTrue(function ($v) { return false === $v; })
115
-                ->then(function () use ($disabledValue) { return $disabledValue; })
114
+                ->ifTrue(function($v) { return false === $v; })
115
+                ->then(function() use ($disabledValue) { return $disabledValue; })
116 116
             ->end()
117 117
             ->defaultFalse()
118 118
             ->validate()
119
-                ->ifTrue(function ($v) { return $v < 0; })
119
+                ->ifTrue(function($v) { return $v < 0; })
120 120
                 ->thenInvalid('"overblog_graphql.security.'.$name.'" must be greater or equal to 0.')
121 121
             ->end()
122 122
         ;
Please login to merge, or discard this patch.
DependencyInjection/OverblogGraphQLTypesExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,9 +127,9 @@
 block discarded – undo
127 127
         // from config
128 128
         if (!empty($config['definitions']['mappings']['types'])) {
129 129
             $typesMappings = array_filter(array_map(
130
-                function (array $typeMapping) use ($container) {
130
+                function(array $typeMapping) use ($container) {
131 131
 
132
-                    $params = $this->detectConfigFiles($container, $typeMapping['dir'],  $typeMapping['type']);
132
+                    $params = $this->detectConfigFiles($container, $typeMapping['dir'], $typeMapping['type']);
133 133
 
134 134
                     return $params;
135 135
                 },
Please login to merge, or discard this patch.
Resolver/Config/AbstractConfigSolution.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
 
118 118
     protected function isExpression($expression)
119 119
     {
120
-        return is_string($expression) &&  0 === strpos($expression, '@=');
120
+        return is_string($expression) && 0 === strpos($expression, '@=');
121 121
     }
122 122
 
123 123
     protected function solveResolveCallbackArgs()
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
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
         $value = $treatedOptions['complexity'];
71 71
 
72
-        $treatedOptions['complexity'] = function () use ($value) {
72
+        $treatedOptions['complexity'] = function() use ($value) {
73 73
             $args = func_get_args();
74 74
             $complexity = $this->solveUsingExpressionLanguageIfNeeded(
75 75
                 $value,
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 
181 181
     private function resolveAccessAndWrapResolveCallback($expression, callable $resolveCallback)
182 182
     {
183
-        return function () use ($expression, $resolveCallback) {
183
+        return function() use ($expression, $resolveCallback) {
184 184
             $args = func_get_args();
185 185
 
186 186
             $values = call_user_func_array([$this, 'solveResolveCallbackArgs'], $args);
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         switch (true) {
206 206
             case is_array($result):
207 207
                 $result = array_map(
208
-                    function ($object) use ($checkAccess) {
208
+                    function($object) use ($checkAccess) {
209 209
                         return $checkAccess($object) ? $object : null;
210 210
                     },
211 211
                     $result
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 
215 215
             case $result instanceof Connection:
216 216
                 $result->edges = array_map(
217
-                    function (Edge $edge) use ($checkAccess) {
217
+                    function(Edge $edge) use ($checkAccess) {
218 218
                         $edge->node = $checkAccess($edge->node) ? $edge->node : null;
219 219
 
220 220
                         return $edge;
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 
234 234
     private function checkAccessCallback($expression, $values)
235 235
     {
236
-        return function ($object, $throwException = false) use ($expression, $values) {
236
+        return function($object, $throwException = false) use ($expression, $values) {
237 237
             try {
238 238
                 $access = $this->solveUsingExpressionLanguageIfNeeded(
239 239
                     $expression,
Please login to merge, or discard this patch.
Tests/Functional/app/Mutation/SimpleMutationWithThunkFieldsMutation.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
     private static $hasMutate = false;
17 17
 
18
-    public static function hasMutate($reset  = false)
18
+    public static function hasMutate($reset = false)
19 19
     {
20 20
         $hasMutate = self::$hasMutate;
21 21
 
Please login to merge, or discard this patch.
Resolver/Config/TypeConfigSolution.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 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
     }
@@ -49,6 +49,6 @@  discard block
 block discarded – undo
49 49
 
50 50
     public function solveInterfaces(array $rawInterfaces)
51 51
     {
52
-        return function () use ($rawInterfaces) { return $this->solveTypes($rawInterfaces, self::INTERFACE_CLASS); };
52
+        return function() use ($rawInterfaces) { return $this->solveTypes($rawInterfaces, self::INTERFACE_CLASS); };
53 53
     }
54 54
 }
Please login to merge, or discard this patch.