We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | public function getBuilder(string $name, ?string $queryAlias, ?string $mutationAlias = null, ?string $subscriptionAlias = null, array $types = []): \Closure |
| 27 | 27 | { |
| 28 | - return function () use ($name, $queryAlias, $mutationAlias, $subscriptionAlias, $types): ExtensibleSchema { |
|
| 28 | + return function () use ($name, $queryAlias, $mutationAlias, $subscriptionAlias, $types) : ExtensibleSchema { |
|
| 29 | 29 | static $schema = null; |
| 30 | 30 | if (null === $schema) { |
| 31 | 31 | $schema = $this->create($name, $queryAlias, $mutationAlias, $subscriptionAlias, $types); |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | $treeBuilder = new TreeBuilder('overblog_graphql_types'); |
| 27 | 27 | $rootNode = Configuration::getRootNodeWithoutDeprecation($treeBuilder, 'overblog_graphql_types'); |
| 28 | 28 | |
| 29 | - $configTypeKeys = \array_map(fn ($type) => $this->normalizedConfigTypeKey($type), self::$types); |
|
| 29 | + $configTypeKeys = \array_map(fn($type) => $this->normalizedConfigTypeKey($type), self::$types); |
|
| 30 | 30 | |
| 31 | 31 | $this->addBeforeNormalization($rootNode); |
| 32 | 32 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | ->end() |
| 57 | 57 | // config is renamed _{TYPE}_config |
| 58 | 58 | ->beforeNormalization() |
| 59 | - ->ifTrue(fn ($v) => isset($v['type']) && \is_string($v['type'])) |
|
| 59 | + ->ifTrue(fn($v) => isset($v['type']) && \is_string($v['type'])) |
|
| 60 | 60 | ->then(function ($v) { |
| 61 | 61 | $key = $this->normalizedConfigTypeKey($v['type']); |
| 62 | 62 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | ->scalarNode('class_name') |
| 74 | 74 | ->isRequired() |
| 75 | 75 | ->validate() |
| 76 | - ->ifTrue(fn ($name) => !\preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $name)) |
|
| 76 | + ->ifTrue(fn($name) => !\preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $name)) |
|
| 77 | 77 | ->thenInvalid('A valid class name starts with a letter or underscore, followed by any number of letters, numbers, or underscores.') |
| 78 | 78 | ->end() |
| 79 | 79 | ->end() |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | ->end() |
| 93 | 93 | // _{TYPE}_config is renamed config |
| 94 | 94 | ->validate() |
| 95 | - ->ifTrue(fn ($v) => isset($v[$this->normalizedConfigTypeKey($v['type'])])) |
|
| 95 | + ->ifTrue(fn($v) => isset($v[$this->normalizedConfigTypeKey($v['type'])])) |
|
| 96 | 96 | ->then(function ($v) { |
| 97 | 97 | $key = $this->normalizedConfigTypeKey($v['type']); |
| 98 | 98 | $v['config'] = $v[$key]; |
@@ -112,8 +112,8 @@ discard block |
||
| 112 | 112 | $node |
| 113 | 113 | // process beforeNormalization (should be execute after relay normalization) |
| 114 | 114 | ->beforeNormalization() |
| 115 | - ->ifTrue(fn ($types) => \is_array($types)) |
|
| 116 | - ->then(fn ($types) => Config\Processor::process($types, Config\Processor::BEFORE_NORMALIZATION)) |
|
| 115 | + ->ifTrue(fn($types) => \is_array($types)) |
|
| 116 | + ->then(fn($types) => Config\Processor::process($types, Config\Processor::BEFORE_NORMALIZATION)) |
|
| 117 | 117 | ->end() |
| 118 | 118 | ; |
| 119 | 119 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $node = self::createNode('name', 'scalar'); |
| 42 | 42 | $node->isRequired(); |
| 43 | 43 | $node->validate() |
| 44 | - ->ifTrue(fn ($name) => !\preg_match('/^[_a-z][_0-9a-z]*$/i', $name)) |
|
| 44 | + ->ifTrue(fn($name) => !\preg_match('/^[_a-z][_0-9a-z]*$/i', $name)) |
|
| 45 | 45 | ->thenInvalid('Invalid type name "%s". (see http://spec.graphql.org/June2018/#sec-Names)') |
| 46 | 46 | ->end(); |
| 47 | 47 | |
@@ -20,8 +20,8 @@ discard block |
||
| 20 | 20 | $prototype |
| 21 | 21 | ->beforeNormalization() |
| 22 | 22 | // Allow field type short syntax (Field: Type => Field: {type: Type}) |
| 23 | - ->ifTrue(fn ($options) => \is_string($options)) |
|
| 24 | - ->then(fn ($options) => ['type' => $options]) |
|
| 23 | + ->ifTrue(fn($options) => \is_string($options)) |
|
| 24 | + ->then(fn($options) => ['type' => $options]) |
|
| 25 | 25 | ->end() |
| 26 | 26 | ->validate() |
| 27 | 27 | // Remove empty entries |
@@ -54,8 +54,8 @@ discard block |
||
| 54 | 54 | ->prototype('array') |
| 55 | 55 | // Allow arg type short syntax (Arg: Type => Arg: {type: Type}) |
| 56 | 56 | ->beforeNormalization() |
| 57 | - ->ifTrue(fn ($options) => \is_string($options)) |
|
| 58 | - ->then(fn ($options) => ['type' => $options]) |
|
| 57 | + ->ifTrue(fn($options) => \is_string($options)) |
|
| 58 | + ->then(fn($options) => ['type' => $options]) |
|
| 59 | 59 | ->end() |
| 60 | 60 | ->children() |
| 61 | 61 | ->append($this->typeSection(true)) |
@@ -21,8 +21,8 @@ |
||
| 21 | 21 | ->prototype('array') |
| 22 | 22 | // Allow field type short syntax (Field: Type => Field: {type: Type}) |
| 23 | 23 | ->beforeNormalization() |
| 24 | - ->ifTrue(fn ($options) => \is_string($options)) |
|
| 25 | - ->then(fn ($options) => ['type' => $options]) |
|
| 24 | + ->ifTrue(fn($options) => \is_string($options)) |
|
| 25 | + ->then(fn($options) => ['type' => $options]) |
|
| 26 | 26 | ->end() |
| 27 | 27 | ->append($this->typeSection(true)) |
| 28 | 28 | ->append($this->descriptionSection()) |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | ->arrayNode('values') |
| 17 | 17 | ->useAttributeAsKey('name') |
| 18 | 18 | ->beforeNormalization() |
| 19 | - ->ifTrue(fn ($v) => \is_array($v)) |
|
| 19 | + ->ifTrue(fn($v) => \is_array($v)) |
|
| 20 | 20 | ->then(function ($v) { |
| 21 | 21 | foreach ($v as $name => &$options) { |
| 22 | 22 | // short syntax NAME: VALUE |
@@ -71,7 +71,7 @@ |
||
| 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']) { |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | { |
| 14 | 14 | parent::__construct( |
| 15 | 15 | $name, |
| 16 | - fn (string $value) => "$this->globalVars->get('container')->getParameter($value)", |
|
| 17 | - fn ($arguments, $paramName) => $parameterBag->get($paramName) |
|
| 16 | + fn(string $value) => "$this->globalVars->get('container')->getParameter($value)", |
|
| 17 | + fn($arguments, $paramName) => $parameterBag->get($paramName) |
|
| 18 | 18 | ); |
| 19 | 19 | } |
| 20 | 20 | } |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | { |
| 14 | 14 | parent::__construct( |
| 15 | 15 | $name, |
| 16 | - fn (string $serviceId) => "$this->globalVars->get('container')->get($serviceId)", |
|
| 17 | - fn ($arguments, $serviceId) => $container->get($serviceId) |
|
| 16 | + fn(string $serviceId) => "$this->globalVars->get('container')->get($serviceId)", |
|
| 17 | + fn($arguments, $serviceId) => $container->get($serviceId) |
|
| 18 | 18 | ); |
| 19 | 19 | } |
| 20 | 20 | } |