Skip to content

Commit 0e16cfd

Browse files
fix: CS
1 parent 85d60f5 commit 0e16cfd

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

src/Core/JsonSchema/SchemaFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function buildSchema(string $className, string $format = 'json', string $
157157
) {
158158
if (($resourceMetadata instanceof ResourceMetadata &&
159159
($operationType && $operationName ? $resourceMetadata->getTypedOperationAttribute($operationType, $operationName, 'deprecation_reason', null, true) : $resourceMetadata->getAttribute('deprecation_reason', null))
160-
) || ($operation && $operation->getDeprecationReason())
160+
) || ($operation && $operation->getDeprecationReason())
161161
) {
162162
$definition['deprecated'] = true;
163163
}

src/Doctrine/EventListener/PublishMercureUpdatesListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ public function __construct(ResourceClassResolverInterface $resourceClassResolve
9999
$this->expressionLanguage->addFunction(
100100
new ExpressionFunction('iri', static function (string $apiResource, int $referenceType = UrlGeneratorInterface::ABS_URL): string {
101101
return sprintf('iri(%s, %d)', $apiResource, $referenceType);
102-
}, static function (array $arguments, $apiResource, int $referenceType = UrlGeneratorInterface::ABS_URL) use ($iriConverter): string {
103-
return $iriConverter->getIriFromResource($apiResource, $referenceType);
104-
})
102+
}, static function (array $arguments, $apiResource, int $referenceType = UrlGeneratorInterface::ABS_URL) use ($iriConverter): string {
103+
return $iriConverter->getIriFromResource($apiResource, $referenceType);
104+
})
105105
);
106106
}
107107
}

src/Symfony/Security/Core/Authorization/ExpressionLanguageProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ public function getFunctions(): array
2828
return [
2929
new ExpressionFunction('is_granted', static function ($attributes, $object = 'null') {
3030
return sprintf('$auth_checker->isGranted(%s, %s)', $attributes, $object);
31-
}, static function (array $variables, $attributes, $object = null) {
32-
return $variables['auth_checker']->isGranted($attributes, $object);
33-
}),
31+
}, static function (array $variables, $attributes, $object = null) {
32+
return $variables['auth_checker']->isGranted($attributes, $object);
33+
}),
3434
];
3535
}
3636
}

src/Symfony/Security/ExpressionLanguage.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ protected function registerFunctions()
4242

4343
$this->register('is_granted', static function ($attributes, $object = 'null') {
4444
return sprintf('$auth_checker->isGranted(%s, %s)', $attributes, $object);
45-
}, static function (array $variables, $attributes, $object = null) {
46-
return $variables['auth_checker']->isGranted($attributes, $object);
47-
});
45+
}, static function (array $variables, $attributes, $object = null) {
46+
return $variables['auth_checker']->isGranted($attributes, $object);
47+
});
4848
}
4949
}
5050

tests/Core/Bridge/Symfony/Validator/EventListener/ValidateListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function __invoke($data): array
118118
{
119119
return $data instanceof DummyEntity ? ['a', 'b', 'c'] : [];
120120
}
121-
}
121+
}
122122
)->shouldBeCalled();
123123

124124
$validationViewListener = new ValidateListener($validator, $resourceMetadataFactory, $containerProphecy->reveal());

0 commit comments

Comments
 (0)