We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -13,8 +13,8 @@ |
||
13 | 13 | { |
14 | 14 | parent::__construct( |
15 | 15 | $name, |
16 | - fn (string $value) => "$this->globalVars->get('container')->getParameter($value)", |
|
17 | - static fn (array $arguments, $paramName) => $arguments[TypeGenerator::GLOBAL_VARS]->get('container')->getParameter($paramName) |
|
16 | + fn(string $value) => "$this->globalVars->get('container')->getParameter($value)", |
|
17 | + static fn(array $arguments, $paramName) => $arguments[TypeGenerator::GLOBAL_VARS]->get('container')->getParameter($paramName) |
|
18 | 18 | ); |
19 | 19 | } |
20 | 20 | } |
@@ -12,8 +12,8 @@ |
||
12 | 12 | { |
13 | 13 | parent::__construct( |
14 | 14 | 'newObject', |
15 | - static fn ($className, $args = '[]') => "(new \\ReflectionClass($className))->newInstanceArgs($args)", |
|
16 | - static fn ($arguments, $className, $args = []) => new $className(...$args) |
|
15 | + static fn($className, $args = '[]') => "(new \\ReflectionClass($className))->newInstanceArgs($args)", |
|
16 | + static fn($arguments, $className, $args = []) => new $className(...$args) |
|
17 | 17 | ); |
18 | 18 | } |
19 | 19 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | { |
14 | 14 | parent::__construct( |
15 | 15 | 'arguments', |
16 | - fn ($mapping, $data) => "$this->globalVars->get('container')->get('overblog_graphql.arguments_transformer')->getArguments($mapping, $data, \$info)", |
|
17 | - static fn (array $arguments, $mapping, $data) => $arguments[TypeGenerator::GLOBAL_VARS]->get('container')->get('overblog_graphql.arguments_transformer')->getArguments($mapping, $data, $arguments['info']) |
|
16 | + fn($mapping, $data) => "$this->globalVars->get('container')->get('overblog_graphql.arguments_transformer')->getArguments($mapping, $data, \$info)", |
|
17 | + static fn(array $arguments, $mapping, $data) => $arguments[TypeGenerator::GLOBAL_VARS]->get('container')->get('overblog_graphql.arguments_transformer')->getArguments($mapping, $data, $arguments['info']) |
|
18 | 18 | ); |
19 | 19 | } |
20 | 20 | } |
@@ -413,7 +413,7 @@ |
||
413 | 413 | $values = []; |
414 | 414 | |
415 | 415 | foreach ($graphClass->getConstants() as $name => $value) { |
416 | - $valueAnnotation = current(array_filter($enumValues, fn ($enumValueAnnotation) => $enumValueAnnotation->name == $name)); |
|
416 | + $valueAnnotation = current(array_filter($enumValues, fn($enumValueAnnotation) => $enumValueAnnotation->name == $name)); |
|
417 | 417 | $valueConfig = []; |
418 | 418 | $valueConfig['value'] = $value; |
419 | 419 |
@@ -214,12 +214,12 @@ |
||
214 | 214 | } |
215 | 215 | |
216 | 216 | if (!empty($c->interfaces)) { |
217 | - $items = array_map(fn ($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $c->interfaces); |
|
217 | + $items = array_map(fn($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $c->interfaces); |
|
218 | 218 | $configLoader->addItem('interfaces', ArrowFunction::new(Collection::numeric($items, true))); |
219 | 219 | } |
220 | 220 | |
221 | 221 | if (!empty($c->types)) { |
222 | - $items = array_map(fn ($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $c->types); |
|
222 | + $items = array_map(fn($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $c->types); |
|
223 | 223 | $configLoader->addItem('types', ArrowFunction::new(Collection::numeric($items, true))); |
224 | 224 | } |
225 | 225 |