@@ -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 | |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | * |
| 57 | 57 | * @return array<array-key, ReflectionClass<object>|ReflectionMethod> |
| 58 | 58 | */ |
| 59 | - public static function getAncestry(ReflectionClass|ReflectionMethod $proband): array |
|
| 59 | + public static function getAncestry(ReflectionClass | ReflectionMethod $proband): array |
|
| 60 | 60 | { |
| 61 | 61 | return $proband instanceof ReflectionClass |
| 62 | 62 | ? self::getClassAncestry($proband) |
@@ -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 | } |
@@ -27,5 +27,5 @@ |
||
| 27 | 27 | * |
| 28 | 28 | * @throws InvalidArgumentException |
| 29 | 29 | */ |
| 30 | - public function reflectRequestHandler(mixed $reference): ReflectionClass|ReflectionMethod; |
|
| 30 | + public function reflectRequestHandler(mixed $reference): ReflectionClass | ReflectionMethod; |
|
| 31 | 31 | } |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | * @throws InvalidArgumentException |
| 37 | 37 | * @throws ReflectionException |
| 38 | 38 | */ |
| 39 | - public function reflectRequestHandler(mixed $reference): ReflectionClass|ReflectionMethod |
|
| 39 | + public function reflectRequestHandler(mixed $reference): ReflectionClass | ReflectionMethod |
|
| 40 | 40 | { |
| 41 | 41 | if ($reference instanceof RequestHandlerInterface) { |
| 42 | 42 | return new ReflectionClass($reference); |
@@ -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 | |