@@ -45,7 +45,7 @@ |
||
45 | 45 | $this->openApiDocumentManager->buildDocument( |
46 | 46 | array_filter( |
47 | 47 | $this->router->getRoutes(), |
48 | - static function (RouteInterface $route): bool { |
|
48 | + static function(RouteInterface $route): bool { |
|
49 | 49 | return $route->isApiRoute(); |
50 | 50 | }, |
51 | 51 | ) |
@@ -137,7 +137,7 @@ |
||
137 | 137 | } |
138 | 138 | } |
139 | 139 | |
140 | - array_walk_recursive($operation, function (mixed &$value) use ($requestHandler): void { |
|
140 | + array_walk_recursive($operation, function(mixed &$value) use ($requestHandler): void { |
|
141 | 141 | if ($value instanceof Type) { |
142 | 142 | $value = $this->openApiPhpTypeSchemaResolverManager->resolvePhpTypeSchema($value, $requestHandler); |
143 | 143 | } |
@@ -58,7 +58,7 @@ |
||
58 | 58 | */ |
59 | 59 | public function resolveParameter(ReflectionParameter $parameter, mixed $context): Generator |
60 | 60 | { |
61 | - if (! $context instanceof ServerRequestInterface) { |
|
61 | + if (!$context instanceof ServerRequestInterface) { |
|
62 | 62 | return; |
63 | 63 | } |
64 | 64 |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | public function resolveParameter(ReflectionParameter $parameter, mixed $context): Generator |
61 | 61 | { |
62 | - if (! $context instanceof ServerRequestInterface) { |
|
62 | + if (!$context instanceof ServerRequestInterface) { |
|
63 | 63 | return; |
64 | 64 | } |
65 | 65 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | $type = $parameter->getType(); |
73 | - if (! $type instanceof ReflectionNamedType || $type->isBuiltin()) { |
|
73 | + if (!$type instanceof ReflectionNamedType || $type->isBuiltin()) { |
|
74 | 74 | throw new InvalidArgumentException(sprintf( |
75 | 75 | 'To use the #[RequestQuery] annotation, the parameter "%s" must be typed with an object.', |
76 | 76 | ParameterResolverChain::stringifyParameter($parameter), |
@@ -38,7 +38,7 @@ |
||
38 | 38 | public function resolveParameter(ReflectionParameter $parameter, mixed $context): Generator |
39 | 39 | { |
40 | 40 | $type = $parameter->getType(); |
41 | - if (! $type instanceof ReflectionNamedType || $type->isBuiltin()) { |
|
41 | + if (!$type instanceof ReflectionNamedType || $type->isBuiltin()) { |
|
42 | 42 | return; |
43 | 43 | } |
44 | 44 |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | public function resolveParameter(ReflectionParameter $parameter, mixed $context): Generator |
61 | 61 | { |
62 | - if (! $context instanceof ServerRequestInterface) { |
|
62 | + if (!$context instanceof ServerRequestInterface) { |
|
63 | 63 | return; |
64 | 64 | } |
65 | 65 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | $type = $parameter->getType(); |
73 | - if (! $type instanceof ReflectionNamedType || $type->isBuiltin()) { |
|
73 | + if (!$type instanceof ReflectionNamedType || $type->isBuiltin()) { |
|
74 | 74 | throw new InvalidArgumentException(sprintf( |
75 | 75 | 'To use the #[RequestBody] annotation, the parameter "%s" must be typed with an object.', |
76 | 76 | ParameterResolverChain::stringifyParameter($parameter), |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $filenames = []; |
61 | 61 | foreach ($files as $file) { |
62 | 62 | $filename = $file->getRealPath(); |
63 | - (static function (string $filename): void { |
|
63 | + (static function(string $filename): void { |
|
64 | 64 | require_once $filename; |
65 | 65 | })($filename); |
66 | 66 | |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | |
93 | 93 | /** @var string $filename */ |
94 | 94 | $filename = realpath($filename); |
95 | - (static function (string $filename): void { |
|
95 | + (static function(string $filename): void { |
|
96 | 96 | require_once $filename; |
97 | 97 | })($filename); |
98 | 98 |
@@ -72,7 +72,7 @@ |
||
72 | 72 | */ |
73 | 73 | private static function trimArray(array $array, Closure $trimmer): array |
74 | 74 | { |
75 | - $walker = static function (mixed &$value) use ($trimmer): void { |
|
75 | + $walker = static function(mixed &$value) use ($trimmer): void { |
|
76 | 76 | if (is_string($value)) { |
77 | 77 | $value = $trimmer($value); |
78 | 78 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | public function validate(mixed $value, Constraint $constraint): void |
33 | 33 | { |
34 | - if (! $constraint instanceof ArgumentConstraint) { |
|
34 | + if (!$constraint instanceof ArgumentConstraint) { |
|
35 | 35 | throw new UnexpectedTypeException($constraint, ArgumentConstraint::class); |
36 | 36 | } |
37 | 37 |