Skip to content

Commit 3d0cad9

Browse files
committed
Push missing cs fixes
1 parent 23d46a3 commit 3d0cad9

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

src/Config/Parser/MetadataParser/TypeGuesser/DoctrineTypeGuesser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ private function getAnnotation(Reflector $reflector, string $annotationClass): ?
106106
$annotations = [];
107107
switch (true) {
108108
case $reflector instanceof ReflectionClass: $annotations = $reader->getClassAnnotations($reflector);
109-
break;
109+
break;
110110
case $reflector instanceof ReflectionMethod: $annotations = $reader->getMethodAnnotations($reflector);
111-
break;
111+
break;
112112
case $reflector instanceof ReflectionProperty: $annotations = $reader->getPropertyAnnotations($reflector);
113-
break;
113+
break;
114114
}
115115
foreach ($annotations as $annotation) {
116116
if ($annotation instanceof $annotationClass) {

src/ExpressionLanguage/ExpressionFunction/GraphQL/Relay/IdFetcherCallback.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ public function __construct()
1414
{
1515
parent::__construct(
1616
'idFetcherCallback',
17-
static fn ($idFetcher) =>
18-
Closure::new()
17+
static fn ($idFetcher) => Closure::new()
1918
->addArgument('value')
2019
->bindVars(TypeGenerator::GRAPHQL_SERVICES, 'args', 'context', 'info')
2120
->append("return $idFetcher")

src/ExpressionLanguage/ExpressionFunction/GraphQL/Relay/MutateAndGetPayloadCallback.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ public function __construct()
1414
{
1515
parent::__construct(
1616
'mutateAndGetPayloadCallback',
17-
static fn ($mutateAndGetPayload) =>
18-
Closure::new()
17+
static fn ($mutateAndGetPayload) => Closure::new()
1918
->addArgument('value')
2019
->bindVars(TypeGenerator::GRAPHQL_SERVICES, 'args', 'context', 'info')
2120
->append("return $mutateAndGetPayload")

src/ExpressionLanguage/ExpressionFunction/GraphQL/Relay/ResolveSingleInputCallback.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ public function __construct()
1414
{
1515
parent::__construct(
1616
'resolveSingleInputCallback',
17-
static fn ($resolveSingleInput) =>
18-
Closure::new()
17+
static fn ($resolveSingleInput) => Closure::new()
1918
->addArgument('value')
2019
->bindVars(TypeGenerator::GRAPHQL_SERVICES, 'args', 'context', 'info')
2120
->append("return $resolveSingleInput")

tests/Functional/TestCase.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,7 @@ public static function expressionFunctionFromPhp(string $phpFunctionName)
161161
return call_user_func([ExpressionFunction::class, 'fromPhp'], $phpFunctionName);
162162
}
163163

164-
return new ExpressionFunction($phpFunctionName, fn () =>
165-
sprintf('\%s(%s)', $phpFunctionName, implode(', ', func_get_args()))
166-
, function (): void {});
164+
return new ExpressionFunction($phpFunctionName, fn () => sprintf('\%s(%s)', $phpFunctionName, implode(', ', func_get_args())), function (): void {});
167165
}
168166

169167
/**

0 commit comments

Comments
 (0)