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 | 'hasAnyPermission', |
17 | - fn ($object, $permissions) => "$this->gqlServices->get('".Security::class."')->hasAnyPermission($object, $permissions)", |
|
18 | - static fn (array $arguments, $object, $permissions) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->hasAnyPermission($object, $permissions) |
|
17 | + fn($object, $permissions) => "$this->gqlServices->get('".Security::class."')->hasAnyPermission($object, $permissions)", |
|
18 | + static fn(array $arguments, $object, $permissions) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->hasAnyPermission($object, $permissions) |
|
19 | 19 | ); |
20 | 20 | } |
21 | 21 | } |
@@ -14,8 +14,8 @@ |
||
14 | 14 | { |
15 | 15 | parent::__construct( |
16 | 16 | 'isGranted', |
17 | - fn ($attributes, $object = 'null') => "$this->gqlServices->get('".Security::class."')->isGranted($attributes, $object)", |
|
18 | - static fn (array $arguments, $attributes, $object = null) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->isGranted($attributes, $object) |
|
17 | + fn($attributes, $object = 'null') => "$this->gqlServices->get('".Security::class."')->isGranted($attributes, $object)", |
|
18 | + static fn(array $arguments, $attributes, $object = null) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->isGranted($attributes, $object) |
|
19 | 19 | ); |
20 | 20 | } |
21 | 21 | } |
@@ -14,8 +14,8 @@ |
||
14 | 14 | { |
15 | 15 | parent::__construct( |
16 | 16 | 'hasRole', |
17 | - fn ($role) => "$this->gqlServices->get('".Security::class."')->hasRole($role)", |
|
18 | - static fn (array $arguments, $role) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->hasRole($role) |
|
17 | + fn($role) => "$this->gqlServices->get('".Security::class."')->hasRole($role)", |
|
18 | + static fn(array $arguments, $role) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->hasRole($role) |
|
19 | 19 | ); |
20 | 20 | } |
21 | 21 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | { |
14 | 14 | parent::__construct( |
15 | 15 | $name, |
16 | - fn (string $value) => "$this->gqlServices->get('service_container')->getParameter($value)", |
|
17 | - static fn (array $arguments, $paramName) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get('service_container')->getParameter($paramName) |
|
16 | + fn(string $value) => "$this->gqlServices->get('service_container')->getParameter($value)", |
|
17 | + static fn(array $arguments, $paramName) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get('service_container')->getParameter($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->gqlServices->get('service_container')->get($serviceId)", |
|
17 | - static fn (array $arguments, $serviceId) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get('service_container')->get($serviceId) |
|
16 | + fn(string $serviceId) => "$this->gqlServices->get('service_container')->get($serviceId)", |
|
17 | + static fn(array $arguments, $serviceId) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get('service_container')->get($serviceId) |
|
18 | 18 | ); |
19 | 19 | } |
20 | 20 | } |
@@ -45,6 +45,6 @@ |
||
45 | 45 | |
46 | 46 | protected function normalizeFields(array $fields): array |
47 | 47 | { |
48 | - return array_map(fn (array $field) => new Field($field), $fields); |
|
48 | + return array_map(fn(array $field) => new Field($field), $fields); |
|
49 | 49 | } |
50 | 50 | } |
@@ -45,6 +45,6 @@ |
||
45 | 45 | |
46 | 46 | protected function normalizeArgs(array $args): array |
47 | 47 | { |
48 | - return array_map(fn (array $arg) => new Arg($arg), $args); |
|
48 | + return array_map(fn(array $arg) => new Arg($arg), $args); |
|
49 | 49 | } |
50 | 50 | } |
@@ -311,12 +311,12 @@ |
||
311 | 311 | } |
312 | 312 | |
313 | 313 | if (!empty($this->config->interfaces)) { |
314 | - $items = array_map(fn ($type) => "$this->gqlServices->getType('$type')", $this->config->interfaces); |
|
314 | + $items = array_map(fn($type) => "$this->gqlServices->getType('$type')", $this->config->interfaces); |
|
315 | 315 | $configLoader->addItem('interfaces', ArrowFunction::new(Collection::numeric($items, true))); |
316 | 316 | } |
317 | 317 | |
318 | 318 | if (!empty($this->config->types)) { |
319 | - $items = array_map(fn ($type) => "$this->gqlServices->getType('$type')", $this->config->types); |
|
319 | + $items = array_map(fn($type) => "$this->gqlServices->getType('$type')", $this->config->types); |
|
320 | 320 | $configLoader->addItem('types', ArrowFunction::new(Collection::numeric($items, true))); |
321 | 321 | } |
322 | 322 |
@@ -14,8 +14,8 @@ |
||
14 | 14 | { |
15 | 15 | parent::__construct( |
16 | 16 | 'getUser', |
17 | - fn () => "$this->gqlServices->get('".Security::class."')->getUser()", |
|
18 | - static fn (array $arguments) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->getUser() |
|
17 | + fn() => "$this->gqlServices->get('".Security::class."')->getUser()", |
|
18 | + static fn(array $arguments) => $arguments[TypeGenerator::GRAPHQL_SERVICES]->get(Security::class)->getUser() |
|
19 | 19 | ); |
20 | 20 | } |
21 | 21 | } |