We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | if ($this->isThenable($resultOrPromise)) { |
| 41 | 41 | return $this->createPromise( |
| 42 | 42 | $resultOrPromise, |
| 43 | - fn ($result) => $this->processFilter($result, $accessChecker, $resolveArgs) |
|
| 43 | + fn($result) => $this->processFilter($result, $accessChecker, $resolveArgs) |
|
| 44 | 44 | ); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | if (!is_numeric($this->connectionBuilder->cursorToOffset($after)) || !$after) { |
| 69 | 69 | $entities = call_user_func($this->fetcher, $offset, $limit ? $limit + 1 : $limit); |
| 70 | 70 | |
| 71 | - return $this->handleEntities($entities, fn ($entities) => $this->connectionBuilder->connectionFromArray($entities, $args)); |
|
| 71 | + return $this->handleEntities($entities, fn($entities) => $this->connectionBuilder->connectionFromArray($entities, $args)); |
|
| 72 | 72 | } else { |
| 73 | 73 | $entities = call_user_func($this->fetcher, $offset, $limit ? $limit + 2 : $limit); |
| 74 | 74 | |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | { |
| 86 | 86 | $this->checkPromise($dataPromise); |
| 87 | 87 | |
| 88 | - return $dataPromise->then(fn ($data) => $this->connectionFromArray($data, $args)); |
|
| 88 | + return $dataPromise->then(fn($data) => $this->connectionFromArray($data, $args)); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | { |
| 188 | 188 | $this->checkPromise($dataPromise); |
| 189 | 189 | |
| 190 | - return $dataPromise->then(fn ($arraySlice) => $this->connectionFromArraySlice($arraySlice, $args, $meta)); |
|
| 190 | + return $dataPromise->then(fn($arraySlice) => $this->connectionFromArraySlice($arraySlice, $args, $meta)); |
|
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | /** |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | if ($multiple) { |
| 78 | - return array_map(fn ($data) => $this->populateObject($type, $data, false, $info), $data); |
|
| 78 | + return array_map(fn($data) => $this->populateObject($type, $data, false, $info), $data); |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | if ($type instanceof EnumType) { |
@@ -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]; |