We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -14,8 +14,8 @@ |
||
| 14 | 14 | { |
| 15 | 15 | parent::__construct( |
| 16 | 16 | 'fromGlobalId', |
| 17 | - static fn ($globalId) => sprintf('\%s::fromGlobalId(%s)', GlobalIdHelper::class, $globalId), |
|
| 18 | - static fn ($_, $globalId) => GlobalIdHelper::fromGlobalId($globalId) |
|
| 17 | + static fn($globalId) => sprintf('\%s::fromGlobalId(%s)', GlobalIdHelper::class, $globalId), |
|
| 18 | + static fn($_, $globalId) => GlobalIdHelper::fromGlobalId($globalId) |
|
| 19 | 19 | ); |
| 20 | 20 | } |
| 21 | 21 | } |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | { |
| 13 | 13 | parent::__construct( |
| 14 | 14 | 'isTypeOf', |
| 15 | - static fn ($className) => "((\$className = $className) && \$value instanceof \$className)", |
|
| 16 | - static fn ($arguments, $className) => $className && $arguments['parentValue'] instanceof $className |
|
| 15 | + static fn($className) => "((\$className = $className) && \$value instanceof \$className)", |
|
| 16 | + static fn($arguments, $className) => $className && $arguments['parentValue'] instanceof $className |
|
| 17 | 17 | ); |
| 18 | 18 | } |
| 19 | 19 | } |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | { |
| 13 | 13 | parent::__construct( |
| 14 | 14 | 'call', |
| 15 | - fn (string $target, string $args = '[]') => "$target(...$args)", |
|
| 16 | - fn ($_, callable $target, array $args) => $target(...$args) |
|
| 15 | + fn(string $target, string $args = '[]') => "$target(...$args)", |
|
| 16 | + fn($_, callable $target, array $args) => $target(...$args) |
|
| 17 | 17 | ); |
| 18 | 18 | } |
| 19 | 19 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | public function getBuilder(string $name, ?string $queryAlias, ?string $mutationAlias = null, ?string $subscriptionAlias = null, array $types = []): Closure |
| 26 | 26 | { |
| 27 | - return function () use ($name, $queryAlias, $mutationAlias, $subscriptionAlias, $types): ExtensibleSchema { |
|
| 27 | + return function () use ($name, $queryAlias, $mutationAlias, $subscriptionAlias, $types) : ExtensibleSchema { |
|
| 28 | 28 | static $schema = null; |
| 29 | 29 | if (null === $schema) { |
| 30 | 30 | $schema = $this->create($name, $queryAlias, $mutationAlias, $subscriptionAlias, $types); |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | { |
| 51 | 51 | return array_reduce( |
| 52 | 52 | $permissions, |
| 53 | - fn ($isGranted, $permission) => $isGranted || $this->isGranted($permission, $object), |
|
| 53 | + fn($isGranted, $permission) => $isGranted || $this->isGranted($permission, $object), |
|
| 54 | 54 | false |
| 55 | 55 | ); |
| 56 | 56 | } |
@@ -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 | ; |