We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | ->arrayNode('values') |
| 22 | 22 | ->useAttributeAsKey('name') |
| 23 | 23 | ->beforeNormalization() |
| 24 | - ->ifTrue(fn ($v) => is_array($v)) |
|
| 24 | + ->ifTrue(fn($v) => is_array($v)) |
|
| 25 | 25 | ->then(function ($v) { |
| 26 | 26 | foreach ($v as $name => &$options) { |
| 27 | 27 | // short syntax NAME: VALUE |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | private function treatFieldsDefaultPublic(ArrayNodeDefinition $node): void |
| 69 | 69 | { |
| 70 | 70 | $node->validate() |
| 71 | - ->ifTrue(fn ($v) => array_key_exists('fieldsDefaultPublic', $v) && null !== $v['fieldsDefaultPublic']) |
|
| 71 | + ->ifTrue(fn($v) => array_key_exists('fieldsDefaultPublic', $v) && null !== $v['fieldsDefaultPublic']) |
|
| 72 | 72 | ->then(function ($v) { |
| 73 | 73 | foreach ($v['fields'] as &$field) { |
| 74 | 74 | if (array_key_exists('public', $field) && null !== $field['public']) { |
@@ -22,8 +22,8 @@ discard block |
||
| 22 | 22 | $prototype |
| 23 | 23 | ->beforeNormalization() |
| 24 | 24 | // Allow field type short syntax (Field: Type => Field: {type: Type}) |
| 25 | - ->ifTrue(fn ($options) => is_string($options)) |
|
| 26 | - ->then(fn ($options) => ['type' => $options]) |
|
| 25 | + ->ifTrue(fn($options) => is_string($options)) |
|
| 26 | + ->then(fn($options) => ['type' => $options]) |
|
| 27 | 27 | ->end() |
| 28 | 28 | ->validate() |
| 29 | 29 | // Remove empty entries |
@@ -56,8 +56,8 @@ discard block |
||
| 56 | 56 | ->prototype('array') |
| 57 | 57 | // Allow arg type short syntax (Arg: Type => Arg: {type: Type}) |
| 58 | 58 | ->beforeNormalization() |
| 59 | - ->ifTrue(fn ($options) => is_string($options)) |
|
| 60 | - ->then(fn ($options) => ['type' => $options]) |
|
| 59 | + ->ifTrue(fn($options) => is_string($options)) |
|
| 60 | + ->then(fn($options) => ['type' => $options]) |
|
| 61 | 61 | ->end() |
| 62 | 62 | ->children() |
| 63 | 63 | ->append($this->typeSection(true)) |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $node |
| 49 | 49 | ->isRequired() |
| 50 | 50 | ->validate() |
| 51 | - ->ifTrue(fn ($name) => !preg_match('/^[_a-z][_0-9a-z]*$/i', $name)) |
|
| 51 | + ->ifTrue(fn($name) => !preg_match('/^[_a-z][_0-9a-z]*$/i', $name)) |
|
| 52 | 52 | ->thenInvalid('Invalid type name "%s". (see http://spec.graphql.org/June2018/#sec-Names)') |
| 53 | 53 | ->end() |
| 54 | 54 | ; |
@@ -22,8 +22,8 @@ |
||
| 22 | 22 | ->prototype('array') |
| 23 | 23 | // Allow field type short syntax (Field: Type => Field: {type: Type}) |
| 24 | 24 | ->beforeNormalization() |
| 25 | - ->ifTrue(fn ($options) => is_string($options)) |
|
| 26 | - ->then(fn ($options) => ['type' => $options]) |
|
| 25 | + ->ifTrue(fn($options) => is_string($options)) |
|
| 26 | + ->then(fn($options) => ['type' => $options]) |
|
| 27 | 27 | ->end() |
| 28 | 28 | ->append($this->typeSection(true)) |
| 29 | 29 | ->append($this->descriptionSection()) |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | $parentTypes = array_intersect_key($configs, array_flip($parents)); |
| 104 | 104 | |
| 105 | 105 | // Restore initial order |
| 106 | - uksort($parentTypes, fn ($a, $b) => (int) (array_search($a, $parents, true) > array_search($b, $parents, true))); |
|
| 106 | + uksort($parentTypes, fn($a, $b) => (int) (array_search($a, $parents, true) > array_search($b, $parents, true))); |
|
| 107 | 107 | |
| 108 | 108 | $mergedParentsConfig = self::mergeConfigs(...array_column($parentTypes, 'config')); |
| 109 | 109 | $childType = $configs[$child]; |
@@ -208,12 +208,12 @@ |
||
| 208 | 208 | } |
| 209 | 209 | |
| 210 | 210 | if (!empty($interfaces)) { |
| 211 | - $items = array_map(fn ($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $interfaces); |
|
| 211 | + $items = array_map(fn($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $interfaces); |
|
| 212 | 212 | $configLoader->addItem('interfaces', ArrowFunction::new(Collection::numeric($items, true))); |
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | if (!empty($types)) { |
| 216 | - $items = array_map(fn ($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $types); |
|
| 216 | + $items = array_map(fn($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $types); |
|
| 217 | 217 | $configLoader->addItem('types', ArrowFunction::new(Collection::numeric($items, true))); |
| 218 | 218 | } |
| 219 | 219 | |
@@ -209,8 +209,8 @@ discard block |
||
| 209 | 209 | // @phpstan-ignore-next-line |
| 210 | 210 | $node |
| 211 | 211 | ->beforeNormalization() |
| 212 | - ->ifTrue(fn ($v) => isset($v['query']) && is_string($v['query']) || isset($v['mutation']) && is_string($v['mutation'])) |
|
| 213 | - ->then(fn ($v) => ['default' => $v]) |
|
| 212 | + ->ifTrue(fn($v) => isset($v['query']) && is_string($v['query']) || isset($v['mutation']) && is_string($v['mutation'])) |
|
| 213 | + ->then(fn($v) => ['default' => $v]) |
|
| 214 | 214 | ->end() |
| 215 | 215 | ->useAttributeAsKey('name') |
| 216 | 216 | ->prototype('array') |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | $node = $builder->getRootNode(); |
| 318 | 318 | |
| 319 | 319 | $node->beforeNormalization() |
| 320 | - ->ifTrue(fn ($v) => is_array($v) && !empty($v)) |
|
| 320 | + ->ifTrue(fn($v) => is_array($v) && !empty($v)) |
|
| 321 | 321 | ->then(function ($v) { |
| 322 | 322 | foreach ($v as $key => &$config) { |
| 323 | 323 | if (is_string($config)) { |
@@ -355,19 +355,19 @@ discard block |
||
| 355 | 355 | $node = $builder->getRootNode(); |
| 356 | 356 | |
| 357 | 357 | $node->beforeNormalization() |
| 358 | - ->ifTrue(fn ($v) => is_string($v) && is_numeric($v)) |
|
| 359 | - ->then(fn ($v) => (int) $v) |
|
| 358 | + ->ifTrue(fn($v) => is_string($v) && is_numeric($v)) |
|
| 359 | + ->then(fn($v) => (int) $v) |
|
| 360 | 360 | ->end(); |
| 361 | 361 | |
| 362 | 362 | $node |
| 363 | 363 | ->info('Disabled if equal to false.') |
| 364 | 364 | ->beforeNormalization() |
| 365 | - ->ifTrue(fn ($v) => false === $v) |
|
| 366 | - ->then(fn () => $disabledValue) |
|
| 365 | + ->ifTrue(fn($v) => false === $v) |
|
| 366 | + ->then(fn() => $disabledValue) |
|
| 367 | 367 | ->end() |
| 368 | 368 | ->defaultValue($disabledValue) |
| 369 | 369 | ->validate() |
| 370 | - ->ifTrue(fn ($v) => is_int($v) && $v < 0) |
|
| 370 | + ->ifTrue(fn($v) => is_int($v) && $v < 0) |
|
| 371 | 371 | ->thenInvalid(sprintf('"%s.security.%s" must be greater or equal to 0.', self::NAME, $name)) |
| 372 | 372 | ->end() |
| 373 | 373 | ; |
@@ -55,9 +55,9 @@ |
||
| 55 | 55 | |
| 56 | 56 | if (!$this->expressionLanguage->evaluate($constraint->expression, $variables)) { |
| 57 | 57 | $this->context->buildViolation($constraint->message) |
| 58 | - ->setParameter('{{ value }}', $this->formatValue($value, self::OBJECT_TO_STRING)) |
|
| 59 | - ->setCode(Expression::EXPRESSION_FAILED_ERROR) |
|
| 60 | - ->addViolation(); |
|
| 58 | + ->setParameter('{{ value }}', $this->formatValue($value, self::OBJECT_TO_STRING)) |
|
| 59 | + ->setCode(Expression::EXPRESSION_FAILED_ERROR) |
|
| 60 | + ->addViolation(); |
|
| 61 | 61 | } |
| 62 | 62 | } |
| 63 | 63 | } |