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
47:23 queued 23:20
created
src/DependencyInjection/Compiler/TaggedServiceMappingPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
     private function autowireSolutionImplementingContainerAwareInterface(Definition $solutionDefinition, bool $isGenerated): void
97 97
     {
98 98
         $methods = array_map(
99
-            fn ($methodCall) => $methodCall[0],
99
+            fn($methodCall) => $methodCall[0],
100 100
             $solutionDefinition->getMethodCalls()
101 101
         );
102 102
         if (
Please login to merge, or discard this patch.
src/DependencyInjection/Compiler/ConfigParserPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
     private function checkTypesDuplication(array $typeConfigs): void
157 157
     {
158 158
         $types = array_merge(...array_map('array_keys', $typeConfigs));
159
-        $duplications = array_keys(array_filter(array_count_values($types), fn ($count) => $count > 1));
159
+        $duplications = array_keys(array_filter(array_count_values($types), fn($count) => $count > 1));
160 160
         if (!empty($duplications)) {
161 161
             throw new ForbiddenOverwriteException(sprintf(
162 162
                 'Types (%s) cannot be overwritten. See inheritance doc section for more details.',
Please login to merge, or discard this patch.
src/DependencyInjection/Configuration.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -219,8 +219,8 @@  discard block
 block discarded – undo
219 219
         // @phpstan-ignore-next-line
220 220
         $node
221 221
             ->beforeNormalization()
222
-                ->ifTrue(fn ($v) => isset($v['query']) && is_string($v['query']) || isset($v['mutation']) && is_string($v['mutation']))
223
-                ->then(fn ($v) => ['default' => $v])
222
+                ->ifTrue(fn($v) => isset($v['query']) && is_string($v['query']) || isset($v['mutation']) && is_string($v['mutation']))
223
+                ->then(fn($v) => ['default' => $v])
224 224
             ->end()
225 225
             ->useAttributeAsKey('name')
226 226
             ->prototype('array')
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
                     ->prototype('array')
271 271
                         ->addDefaultsIfNotSet()
272 272
                         ->beforeNormalization()
273
-                            ->ifTrue(fn ($v) => isset($v['type']) && is_string($v['type']))
273
+                            ->ifTrue(fn($v) => isset($v['type']) && is_string($v['type']))
274 274
                             ->then(function ($v) {
275 275
                                 if ('yml' === $v['type']) {
276 276
                                     $v['types'] = ['yaml'];
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
         $node = $builder->getRootNode();
345 345
 
346 346
         $node->beforeNormalization()
347
-            ->ifTrue(fn ($v) => is_array($v) && !empty($v))
347
+            ->ifTrue(fn($v) => is_array($v) && !empty($v))
348 348
             ->then(function ($v) {
349 349
                 foreach ($v as $key => &$config) {
350 350
                     if (is_string($config)) {
@@ -382,19 +382,19 @@  discard block
 block discarded – undo
382 382
         $node = $builder->getRootNode();
383 383
 
384 384
         $node->beforeNormalization()
385
-                ->ifTrue(fn ($v) => is_string($v) && is_numeric($v))
386
-                ->then(fn ($v) => (int) $v)
385
+                ->ifTrue(fn($v) => is_string($v) && is_numeric($v))
386
+                ->then(fn($v) => (int) $v)
387 387
             ->end();
388 388
 
389 389
         $node
390 390
             ->info('Disabled if equal to false.')
391 391
             ->beforeNormalization()
392
-                ->ifTrue(fn ($v) => false === $v)
393
-                ->then(fn () => $disabledValue)
392
+                ->ifTrue(fn($v) => false === $v)
393
+                ->then(fn() => $disabledValue)
394 394
             ->end()
395 395
             ->defaultValue($disabledValue)
396 396
             ->validate()
397
-                ->ifTrue(fn ($v) => is_int($v) && $v < 0)
397
+                ->ifTrue(fn($v) => is_int($v) && $v < 0)
398 398
                 ->thenInvalid(sprintf('"%s.security.%s" must be greater or equal to 0.', self::NAME, $name))
399 399
             ->end()
400 400
         ;
Please login to merge, or discard this patch.
src/Config/ObjectTypeDefinition.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     private function treatFieldsDefaultAccess(ArrayNodeDefinition $node): void
51 51
     {
52 52
         $node->validate()
53
-            ->ifTrue(fn ($v) => array_key_exists('fieldsDefaultAccess', $v) && null !== $v['fieldsDefaultAccess'])
53
+            ->ifTrue(fn($v) => array_key_exists('fieldsDefaultAccess', $v) && null !== $v['fieldsDefaultAccess'])
54 54
             ->then(function ($v) {
55 55
                 foreach ($v['fields'] as &$field) {
56 56
                     if (array_key_exists('access', $field) && null !== $field['access']) {
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     private function treatFieldsDefaultPublic(ArrayNodeDefinition $node): void
72 72
     {
73 73
         $node->validate()
74
-            ->ifTrue(fn ($v) => array_key_exists('fieldsDefaultPublic', $v) && null !== $v['fieldsDefaultPublic'])
74
+            ->ifTrue(fn($v) => array_key_exists('fieldsDefaultPublic', $v) && null !== $v['fieldsDefaultPublic'])
75 75
             ->then(function ($v) {
76 76
                 foreach ($v['fields'] as &$field) {
77 77
                     if (array_key_exists('public', $field) && null !== $field['public']) {
Please login to merge, or discard this patch.
src/Config/Parser/MetadataParser/MetadataParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
 
347 347
         $buildersAnnotations = array_merge(self::getMetadataMatching($metadatas, Metadata\FieldsBuilder::class), $typeAnnotation->builders);
348 348
         if (!empty($buildersAnnotations)) {
349
-            $typeConfiguration['builders'] = array_map(fn ($fieldsBuilderAnnotation) => ['builder' => $fieldsBuilderAnnotation->name, 'builderConfig' => $fieldsBuilderAnnotation->config], $buildersAnnotations);
349
+            $typeConfiguration['builders'] = array_map(fn($fieldsBuilderAnnotation) => ['builder' => $fieldsBuilderAnnotation->name, 'builderConfig' => $fieldsBuilderAnnotation->config], $buildersAnnotations);
350 350
         }
351 351
 
352 352
         if (isset($typeAnnotation->isTypeOf)) {
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
             $reflectionConstant = new ReflectionClassConstant($reflectionClass->getName(), $name);
441 441
             $valueConfig = self::getDescriptionConfiguration(static::getMetadatas($reflectionConstant), true);
442 442
 
443
-            $enumValueAnnotation = current(array_filter($enumValues, fn ($enumValueAnnotation) => $enumValueAnnotation->name === $name));
443
+            $enumValueAnnotation = current(array_filter($enumValues, fn($enumValueAnnotation) => $enumValueAnnotation->name === $name));
444 444
             $valueConfig['value'] = $value;
445 445
 
446 446
             if (false !== $enumValueAnnotation) {
Please login to merge, or discard this patch.
src/Config/Processor/InheritanceProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     private static function removedDecorators(array $configs): array
41 41
     {
42
-        return array_filter($configs, fn ($config) => !isset($config['decorator']) || true !== $config['decorator']);
42
+        return array_filter($configs, fn($config) => !isset($config['decorator']) || true !== $config['decorator']);
43 43
     }
44 44
 
45 45
     private static function processConfigsHeirs(array $configs): array
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $parentTypes = array_intersect_key($configs, array_flip($parents));
102 102
 
103 103
         // Restore initial order
104
-        uksort($parentTypes, fn ($a, $b) => (int) (array_search($a, $parents, true) > array_search($b, $parents, true)));
104
+        uksort($parentTypes, fn($a, $b) => (int) (array_search($a, $parents, true) > array_search($b, $parents, true)));
105 105
 
106 106
         $mergedParentsConfig = self::mergeConfigs(...array_column($parentTypes, 'config'));
107 107
         $childType = $configs[$child];
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/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.