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); |
@@ -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 |
@@ -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()) |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | /** @var ArrayNodeDefinition $rootNode */ |
38 | 38 | $rootNode = $treeBuilder->getRootNode(); |
39 | 39 | |
40 | - $configTypeKeys = array_map(fn ($type) => $this->normalizedConfigTypeKey($type), self::$types); |
|
40 | + $configTypeKeys = array_map(fn($type) => $this->normalizedConfigTypeKey($type), self::$types); |
|
41 | 41 | |
42 | 42 | $this->addBeforeNormalization($rootNode); |
43 | 43 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | ->end() |
69 | 69 | // config is renamed _{TYPE}_config |
70 | 70 | ->beforeNormalization() |
71 | - ->ifTrue(fn ($v) => isset($v['type']) && is_string($v['type'])) |
|
71 | + ->ifTrue(fn($v) => isset($v['type']) && is_string($v['type'])) |
|
72 | 72 | ->then(function ($v) { |
73 | 73 | $key = $this->normalizedConfigTypeKey($v['type']); |
74 | 74 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | ->scalarNode('class_name') |
86 | 86 | ->isRequired() |
87 | 87 | ->validate() |
88 | - ->ifTrue(fn ($name) => !preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $name)) |
|
88 | + ->ifTrue(fn($name) => !preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $name)) |
|
89 | 89 | ->thenInvalid('A valid class name starts with a letter or underscore, followed by any number of letters, numbers, or underscores.') |
90 | 90 | ->end() |
91 | 91 | ->end() |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | ->end() |
105 | 105 | // _{TYPE}_config is renamed config |
106 | 106 | ->validate() |
107 | - ->ifTrue(fn ($v) => isset($v[$this->normalizedConfigTypeKey($v['type'])])) |
|
107 | + ->ifTrue(fn($v) => isset($v[$this->normalizedConfigTypeKey($v['type'])])) |
|
108 | 108 | ->then(function ($v) { |
109 | 109 | $key = $this->normalizedConfigTypeKey($v['type']); |
110 | 110 | $v['config'] = $v[$key]; |
@@ -124,8 +124,8 @@ discard block |
||
124 | 124 | $node |
125 | 125 | // process beforeNormalization (should be execute after relay normalization) |
126 | 126 | ->beforeNormalization() |
127 | - ->ifTrue(fn ($types) => is_array($types)) |
|
128 | - ->then(fn ($types) => Config\Processor::process($types, Config\Processor::BEFORE_NORMALIZATION)) |
|
127 | + ->ifTrue(fn($types) => is_array($types)) |
|
128 | + ->then(fn($types) => Config\Processor::process($types, Config\Processor::BEFORE_NORMALIZATION)) |
|
129 | 129 | ->end() |
130 | 130 | ; |
131 | 131 | } |