We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | parent::__construct( |
16 | 16 | 'idFetcherCallback', |
17 | - static fn ($idFetcher) => ( |
|
17 | + static fn($idFetcher) => ( |
|
18 | 18 | Closure::new() |
19 | 19 | ->addArgument('value') |
20 | 20 | ->bindVars(TypeGenerator::GLOBAL_VARS, 'args', 'context', 'info') |
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | parent::__construct( |
16 | 16 | 'mutateAndGetPayloadCallback', |
17 | - static fn ($mutateAndGetPayload) => ( |
|
17 | + static fn($mutateAndGetPayload) => ( |
|
18 | 18 | Closure::new() |
19 | 19 | ->addArgument('value') |
20 | 20 | ->bindVars(TypeGenerator::GLOBAL_VARS, 'args', 'context', 'info') |
@@ -187,12 +187,12 @@ |
||
187 | 187 | } |
188 | 188 | |
189 | 189 | if (!empty($interfaces)) { |
190 | - $items = \array_map(fn ($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $interfaces); |
|
190 | + $items = \array_map(fn($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $interfaces); |
|
191 | 191 | $configLoader->addItem('interfaces', ArrowFunction::new(Collection::numeric($items, true))); |
192 | 192 | } |
193 | 193 | |
194 | 194 | if (!empty($types)) { |
195 | - $items = \array_map(fn ($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $types); |
|
195 | + $items = \array_map(fn($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $types); |
|
196 | 196 | $configLoader->addItem('types', ArrowFunction::new(Collection::numeric($items, true))); |
197 | 197 | } |
198 | 198 |
@@ -55,9 +55,9 @@ |
||
55 | 55 | |
56 | 56 | if (!$this->expressionLanguage->evaluate($constraint->expression, $variables)) { |
57 | 57 | $this->context->buildViolation($constraint->message) |
58 | - ->setParameter('{{ value }}', $this->formatValue($value, self::OBJECT_TO_STRING)) |
|
59 | - ->setCode(Expression::EXPRESSION_FAILED_ERROR) |
|
60 | - ->addViolation(); |
|
58 | + ->setParameter('{{ value }}', $this->formatValue($value, self::OBJECT_TO_STRING)) |
|
59 | + ->setCode(Expression::EXPRESSION_FAILED_ERROR) |
|
60 | + ->addViolation(); |
|
61 | 61 | } |
62 | 62 | } |
63 | 63 | } |
@@ -12,8 +12,8 @@ |
||
12 | 12 | { |
13 | 13 | parent::__construct( |
14 | 14 | 'hasAnyPermission', |
15 | - fn ($object, $permissions) => "$this->globalVars->get('security')->hasAnyPermission($object, $permissions)", |
|
16 | - static fn (array $arguments, $object, $permissions) => $arguments['globalVariables']->get('security')->hasAnyPermission($object, $permissions) |
|
15 | + fn($object, $permissions) => "$this->globalVars->get('security')->hasAnyPermission($object, $permissions)", |
|
16 | + static fn(array $arguments, $object, $permissions) => $arguments['globalVariables']->get('security')->hasAnyPermission($object, $permissions) |
|
17 | 17 | ); |
18 | 18 | } |
19 | 19 | } |
@@ -12,8 +12,8 @@ |
||
12 | 12 | { |
13 | 13 | parent::__construct( |
14 | 14 | 'hasAnyRole', |
15 | - fn ($roles) => "$this->globalVars->get('security')->hasAnyRole($roles)", |
|
16 | - static fn (array $arguments, $roles) => $arguments['globalVariables']->get('security')->hasAnyRole($roles) |
|
15 | + fn($roles) => "$this->globalVars->get('security')->hasAnyRole($roles)", |
|
16 | + static fn(array $arguments, $roles) => $arguments['globalVariables']->get('security')->hasAnyRole($roles) |
|
17 | 17 | ); |
18 | 18 | } |
19 | 19 | } |
@@ -12,8 +12,8 @@ |
||
12 | 12 | { |
13 | 13 | parent::__construct( |
14 | 14 | 'isAnonymous', |
15 | - fn () => "$this->globalVars->get('security')->isAnonymous()", |
|
16 | - static fn (array $arguments) => $arguments['globalVariables']->get('security')->isAnonymous() |
|
15 | + fn() => "$this->globalVars->get('security')->isAnonymous()", |
|
16 | + static fn(array $arguments) => $arguments['globalVariables']->get('security')->isAnonymous() |
|
17 | 17 | ); |
18 | 18 | } |
19 | 19 | } |
@@ -12,8 +12,8 @@ |
||
12 | 12 | { |
13 | 13 | parent::__construct( |
14 | 14 | 'isFullyAuthenticated', |
15 | - fn () => "$this->globalVars->get('security')->isFullyAuthenticated()", |
|
16 | - fn (array $arguments) => $arguments['globalVariables']->get('security')->isFullyAuthenticated() |
|
15 | + fn() => "$this->globalVars->get('security')->isFullyAuthenticated()", |
|
16 | + fn(array $arguments) => $arguments['globalVariables']->get('security')->isFullyAuthenticated() |
|
17 | 17 | ); |
18 | 18 | } |
19 | 19 | } |
@@ -12,8 +12,8 @@ |
||
12 | 12 | { |
13 | 13 | parent::__construct( |
14 | 14 | 'getUser', |
15 | - fn () => "$this->globalVars->get('security')->getUser()", |
|
16 | - static fn (array $arguments) => $arguments['globalVariables']->get('security')->getUser() |
|
15 | + fn() => "$this->globalVars->get('security')->getUser()", |
|
16 | + static fn(array $arguments) => $arguments['globalVariables']->get('security')->getUser() |
|
17 | 17 | ); |
18 | 18 | } |
19 | 19 | } |