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

Passed
Pull Request — 0.14 (#851)
by Jérémiah
08:23
created
src/Config/TypeDefinition.php 1 patch
Spacing   +11 added lines, -12 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $node
43 43
             ->isRequired()
44 44
             ->validate()
45
-                ->ifTrue(fn ($name) => !preg_match('/^[_a-z][_0-9a-z]*$/i', $name))
45
+                ->ifTrue(fn($name) => !preg_match('/^[_a-z][_0-9a-z]*$/i', $name))
46 46
                 ->thenInvalid('Invalid type name "%s". (see http://spec.graphql.org/June2018/#sec-Names)')
47 47
             ->end()
48 48
         ;
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     {
158 158
         $node
159 159
             ->beforeNormalization()
160
-                ->ifTrue(fn ($options) => !empty($options[$old]) && empty($options[$new]))
160
+                ->ifTrue(fn($options) => !empty($options[$old]) && empty($options[$new]))
161 161
                 ->then(function ($options) use ($old, $new) {
162 162
                     if (is_callable($options[$old])) {
163 163
                         if (is_array($options[$old])) {
@@ -167,8 +167,7 @@  discard block
 block discarded – undo
167 167
                         }
168 168
                     } elseif (is_string($options[$old])) {
169 169
                         $options[$new]['expression'] = ExpressionLanguage::stringHasTrigger($options[$old]) ?
170
-                            ExpressionLanguage::unprefixExpression($options[$old]) :
171
-                            json_encode($options[$old]);
170
+                            ExpressionLanguage::unprefixExpression($options[$old]) : json_encode($options[$old]);
172 171
                     } else {
173 172
                         $options[$new]['expression'] = json_encode($options[$old]);
174 173
                     }
@@ -177,7 +176,7 @@  discard block
 block discarded – undo
177 176
                 })
178 177
             ->end()
179 178
             ->beforeNormalization()
180
-                ->ifTrue(fn ($options) => is_array($options) && array_key_exists($old, $options))
179
+                ->ifTrue(fn($options) => is_array($options) && array_key_exists($old, $options))
181 180
                 ->then(function ($options) use ($old) {
182 181
                     unset($options[$old]);
183 182
 
@@ -185,7 +184,7 @@  discard block
 block discarded – undo
185 184
                 })
186 185
             ->end()
187 186
             ->validate()
188
-                ->ifTrue(fn (array $v) => !empty($v[$new]) && !empty($v[$old]))
187
+                ->ifTrue(fn(array $v) => !empty($v[$new]) && !empty($v[$old]))
189 188
                 ->thenInvalid(sprintf(
190 189
                     '"%s" and "%s" should not be use together in "%%s".',
191 190
                     $new,
@@ -203,21 +202,21 @@  discard block
 block discarded – undo
203 202
         $node
204 203
             ->info($info)
205 204
             ->validate()
206
-                ->ifTrue(fn (array $v) => !empty($v['method']) && !empty($v['expression']))
205
+                ->ifTrue(fn(array $v) => !empty($v['method']) && !empty($v['expression']))
207 206
                 ->thenInvalid('"method" and "expression" should not be use together.')
208 207
             ->end()
209 208
             ->beforeNormalization()
210 209
                 // Allow short syntax
211
-                ->ifTrue(fn ($options) => is_string($options) && ExpressionLanguage::stringHasTrigger($options))
212
-                ->then(fn ($options) => ['expression' => ExpressionLanguage::unprefixExpression($options)])
210
+                ->ifTrue(fn($options) => is_string($options) && ExpressionLanguage::stringHasTrigger($options))
211
+                ->then(fn($options) => ['expression' => ExpressionLanguage::unprefixExpression($options)])
213 212
             ->end()
214 213
             ->beforeNormalization()
215
-                ->ifTrue(fn ($options) => is_string($options) && !ExpressionLanguage::stringHasTrigger($options))
216
-                ->then(fn ($options) => ['method' => $options])
214
+                ->ifTrue(fn($options) => is_string($options) && !ExpressionLanguage::stringHasTrigger($options))
215
+                ->then(fn($options) => ['method' => $options])
217 216
             ->end()
218 217
             ->beforeNormalization()
219 218
                 // clean expression
220
-                ->ifTrue(fn ($options) => isset($options['expression']) && is_string($options['expression']) && ExpressionLanguage::stringHasTrigger($options['expression']))
219
+                ->ifTrue(fn($options) => isset($options['expression']) && is_string($options['expression']) && ExpressionLanguage::stringHasTrigger($options['expression']))
221 220
                 ->then(function ($options) {
222 221
                     $options['expression'] = ExpressionLanguage::unprefixExpression($options['expression']);
223 222
 
Please login to merge, or discard this patch.
src/ExpressionLanguage/ExpressionFunction/GraphQL/Arguments.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
     {
14 14
         parent::__construct(
15 15
             'arguments',
16
-            fn ($mapping, $data) => "$this->gqlServices->get('service_container')->get('overblog_graphql.arguments_transformer')->getArguments($mapping, $data, \$info)",
17
-            static fn (array $arguments, $mapping, $data) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get('service_container')->get('overblog_graphql.arguments_transformer')->getArguments($mapping, $data, $arguments['info'])
16
+            fn($mapping, $data) => "$this->gqlServices->get('service_container')->get('overblog_graphql.arguments_transformer')->getArguments($mapping, $data, \$info)",
17
+            static fn(array $arguments, $mapping, $data) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get('service_container')->get('overblog_graphql.arguments_transformer')->getArguments($mapping, $data, $arguments['info'])
18 18
         );
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
src/ExpressionLanguage/ExpressionFunction/Security/IsAnonymous.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
     {
15 15
         parent::__construct(
16 16
             'isAnonymous',
17
-            fn () => "$this->gqlServices->get('".Security::class.'\')->isAnonymous()',
18
-            static fn (array $arguments) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->isAnonymous()
17
+            fn() => "$this->gqlServices->get('".Security::class.'\')->isAnonymous()',
18
+            static fn(array $arguments) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->isAnonymous()
19 19
         );
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
src/ExpressionLanguage/ExpressionFunction/Security/IsFullyAuthenticated.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
     {
15 15
         parent::__construct(
16 16
             'isFullyAuthenticated',
17
-            fn () => "$this->gqlServices->get('".Security::class.'\')->isFullyAuthenticated()',
18
-            fn (array $arguments) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->isFullyAuthenticated()
17
+            fn() => "$this->gqlServices->get('".Security::class.'\')->isFullyAuthenticated()',
18
+            fn(array $arguments) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->isFullyAuthenticated()
19 19
         );
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
src/ExpressionLanguage/ExpressionFunction/Security/HasPermission.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
     {
15 15
         parent::__construct(
16 16
             'hasPermission',
17
-            fn ($object, $permission) => "$this->gqlServices->get('".Security::class."')->hasPermission($object, $permission)",
18
-            static fn (array $arguments, $object, $permission) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->hasPermission($object, $permission)
17
+            fn($object, $permission) => "$this->gqlServices->get('".Security::class."')->hasPermission($object, $permission)",
18
+            static fn(array $arguments, $object, $permission) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->hasPermission($object, $permission)
19 19
         );
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
src/ExpressionLanguage/ExpressionFunction/Security/IsRememberMe.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
     {
15 15
         parent::__construct(
16 16
             'isRememberMe',
17
-            fn () => "$this->gqlServices->get('".Security::class.'\')->isRememberMe()',
18
-            static fn (array $arguments) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->isRememberMe()
17
+            fn() => "$this->gqlServices->get('".Security::class.'\')->isRememberMe()',
18
+            static fn(array $arguments) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->isRememberMe()
19 19
         );
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
src/ExpressionLanguage/ExpressionFunction/Security/IsAuthenticated.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
     {
15 15
         parent::__construct(
16 16
             'isAuthenticated',
17
-            fn () => "$this->gqlServices->get('".Security::class.'\')->isAuthenticated()',
18
-            static fn (array $arguments) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->isAuthenticated()
17
+            fn() => "$this->gqlServices->get('".Security::class.'\')->isAuthenticated()',
18
+            static fn(array $arguments) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->isAuthenticated()
19 19
         );
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
src/ExpressionLanguage/ExpressionFunction/Security/GetUser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
     {
15 15
         parent::__construct(
16 16
             'getUser',
17
-            fn () => "$this->gqlServices->get('".Security::class.'\')->getUser()',
18
-            static fn (array $arguments) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->getUser()
17
+            fn() => "$this->gqlServices->get('".Security::class.'\')->getUser()',
18
+            static fn(array $arguments) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->getUser()
19 19
         );
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
src/ExpressionLanguage/ExpressionFunction/Security/HasAnyRole.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
     {
15 15
         parent::__construct(
16 16
             'hasAnyRole',
17
-            fn ($roles) => "$this->gqlServices->get('".Security::class."')->hasAnyRole($roles)",
18
-            static fn (array $arguments, $roles) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->hasAnyRole($roles)
17
+            fn($roles) => "$this->gqlServices->get('".Security::class."')->hasAnyRole($roles)",
18
+            static fn(array $arguments, $roles) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->hasAnyRole($roles)
19 19
         );
20 20
     }
21 21
 }
Please login to merge, or discard this patch.