We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -96,7 +96,7 @@ |
||
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 ( |
@@ -156,7 +156,7 @@ |
||
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.', |
@@ -219,8 +219,8 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | ; |
@@ -50,7 +50,7 @@ discard block |
||
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 |
||
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']) { |
@@ -39,7 +39,7 @@ discard block |
||
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 |
||
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]; |
@@ -13,8 +13,8 @@ |
||
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 | } |
@@ -14,8 +14,8 @@ |
||
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 | } |
@@ -14,8 +14,8 @@ |
||
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 | } |
@@ -14,8 +14,8 @@ |
||
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 | } |