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 | 'mutateAndGetPayloadCallback', |
| 17 | - static fn ($mutateAndGetPayload) => ( |
|
| 17 | + static fn($mutateAndGetPayload) => ( |
|
| 18 | 18 | Closure::new() |
| 19 | 19 | ->addArgument('value') |
| 20 | 20 | ->bindVars(TypeGenerator::GRAPHQL_SERVICES, 'args', 'context', 'info') |
@@ -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::GRAPHQL_SERVICES, 'args', 'context', 'info') |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | { |
| 82 | 82 | return array_reduce( |
| 83 | 83 | explode('.', $location), |
| 84 | - fn ($carry, $item) => "{$carry}[$item]" |
|
| 84 | + fn($carry, $item) => "{$carry}[$item]" |
|
| 85 | 85 | ); |
| 86 | 86 | } |
| 87 | 87 | |
@@ -27,6 +27,6 @@ |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | // @phpstan-ignore-next-line |
| 30 | - return array_map(fn (ReflectionAttribute $attribute) => $attribute->newInstance(), $attributes); |
|
| 30 | + return array_map(fn(ReflectionAttribute $attribute) => $attribute->newInstance(), $attributes); |
|
| 31 | 31 | } |
| 32 | 32 | } |
@@ -54,9 +54,9 @@ |
||
| 54 | 54 | |
| 55 | 55 | if (!$this->expressionLanguage->evaluate($constraint->expression, $variables)) { |
| 56 | 56 | $this->context->buildViolation($constraint->message) |
| 57 | - ->setParameter('{{ value }}', $this->formatValue($value, self::OBJECT_TO_STRING)) |
|
| 58 | - ->setCode(Expression::EXPRESSION_FAILED_ERROR) |
|
| 59 | - ->addViolation(); |
|
| 57 | + ->setParameter('{{ value }}', $this->formatValue($value, self::OBJECT_TO_STRING)) |
|
| 58 | + ->setCode(Expression::EXPRESSION_FAILED_ERROR) |
|
| 59 | + ->addViolation(); |
|
| 60 | 60 | } |
| 61 | 61 | } |
| 62 | 62 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | return array_reduce( |
| 52 | 52 | $permissions, |
| 53 | - fn ($isGranted, $permission) => $isGranted || $this->isGranted($permission, $object), |
|
| 53 | + fn($isGranted, $permission) => $isGranted || $this->isGranted($permission, $object), |
|
| 54 | 54 | false |
| 55 | 55 | ); |
| 56 | 56 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | { |
| 60 | 60 | return array_reduce( |
| 61 | 61 | $roles, |
| 62 | - fn ($isGranted, $role) => $isGranted || $this->isGranted($role), |
|
| 62 | + fn($isGranted, $role) => $isGranted || $this->isGranted($role), |
|
| 63 | 63 | false |
| 64 | 64 | ); |
| 65 | 65 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | if ($this->isThenable($resultOrPromise)) { |
| 41 | 41 | return $this->createPromise( |
| 42 | 42 | $resultOrPromise, |
| 43 | - fn ($result) => $this->processFilter($result, $accessChecker, $resolveArgs) |
|
| 43 | + fn($result) => $this->processFilter($result, $accessChecker, $resolveArgs) |
|
| 44 | 44 | ); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | if (!is_numeric($this->connectionBuilder->cursorToOffset($after)) || !$after) { |
| 69 | 69 | $entities = call_user_func($this->fetcher, $offset, $limit ? $limit + 1 : $limit); |
| 70 | 70 | |
| 71 | - return $this->handleEntities($entities, fn ($entities) => $this->connectionBuilder->connectionFromArray($entities, $args)); |
|
| 71 | + return $this->handleEntities($entities, fn($entities) => $this->connectionBuilder->connectionFromArray($entities, $args)); |
|
| 72 | 72 | } else { |
| 73 | 73 | $entities = call_user_func($this->fetcher, $offset, $limit ? $limit + 2 : $limit); |
| 74 | 74 | |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | { |
| 86 | 86 | $this->checkPromise($dataPromise); |
| 87 | 87 | |
| 88 | - return $dataPromise->then(fn ($data) => $this->connectionFromArray($data, $args)); |
|
| 88 | + return $dataPromise->then(fn($data) => $this->connectionFromArray($data, $args)); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | { |
| 188 | 188 | $this->checkPromise($dataPromise); |
| 189 | 189 | |
| 190 | - return $dataPromise->then(fn ($arraySlice) => $this->connectionFromArraySlice($arraySlice, $args, $meta)); |
|
| 190 | + return $dataPromise->then(fn($arraySlice) => $this->connectionFromArraySlice($arraySlice, $args, $meta)); |
|
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | /** |