@@ -46,7 +46,7 @@ |
||
| 46 | 46 | ReflectionClass|ReflectionMethod $requestHandler, |
| 47 | 47 | array &$operation, |
| 48 | 48 | ): void { |
| 49 | - if (! $requestHandler instanceof ReflectionMethod) { |
|
| 49 | + if (!$requestHandler instanceof ReflectionMethod) { |
|
| 50 | 50 | return; |
| 51 | 51 | } |
| 52 | 52 | |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | ReflectionClass|ReflectionMethod $requestHandler, |
| 47 | 47 | array &$operation, |
| 48 | 48 | ): void { |
| 49 | - if (! $requestHandler instanceof ReflectionMethod) { |
|
| 49 | + if (!$requestHandler instanceof ReflectionMethod) { |
|
| 50 | 50 | return; |
| 51 | 51 | } |
| 52 | 52 | |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | ReflectionClass|ReflectionMethod $requestHandler, |
| 56 | 56 | array &$operation, |
| 57 | 57 | ): void { |
| 58 | - if (! $requestHandler instanceof ReflectionMethod) { |
|
| 58 | + if (!$requestHandler instanceof ReflectionMethod) { |
|
| 59 | 59 | return; |
| 60 | 60 | } |
| 61 | 61 | |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | ReflectionClass|ReflectionMethod $requestHandler, |
| 47 | 47 | array &$operation, |
| 48 | 48 | ): void { |
| 49 | - if (! $requestHandler instanceof ReflectionMethod) { |
|
| 49 | + if (!$requestHandler instanceof ReflectionMethod) { |
|
| 50 | 50 | return; |
| 51 | 51 | } |
| 52 | 52 | |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | ReflectionClass|ReflectionMethod $requestHandler, |
| 46 | 46 | array &$operation, |
| 47 | 47 | ): void { |
| 48 | - if (! $requestHandler instanceof ReflectionMethod) { |
|
| 48 | + if (!$requestHandler instanceof ReflectionMethod) { |
|
| 49 | 49 | return; |
| 50 | 50 | } |
| 51 | 51 | |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | ReflectionClass|ReflectionMethod $requestHandler, |
| 46 | 46 | array &$operation, |
| 47 | 47 | ): void { |
| 48 | - if (! $requestHandler instanceof ReflectionMethod) { |
|
| 48 | + if (!$requestHandler instanceof ReflectionMethod) { |
|
| 49 | 49 | return; |
| 50 | 50 | } |
| 51 | 51 | |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | |
| 62 | 62 | $variableSchema = $this->getRequestVariableSchema($requestHandler, $variableName); |
| 63 | 63 | $variableSchema ??= ['type' => Type::OAS_TYPE_NAME_STRING]; |
| 64 | - $variableSchema['pattern'] = '^' . $variablePattern . '$'; |
|
| 64 | + $variableSchema['pattern'] = '^'.$variablePattern.'$'; |
|
| 65 | 65 | |
| 66 | 66 | $operation['parameters'][] = [ |
| 67 | 67 | 'in' => 'path', |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | throw new InvalidArgumentException(sprintf( |
| 169 | - 'The loader "%s" only accepts directory, file or class names; ' . |
|
| 169 | + 'The loader "%s" only accepts directory, file or class names; '. |
|
| 170 | 170 | 'however, the resource "%s" is not one of them.', |
| 171 | 171 | self::class, |
| 172 | 172 | $resource, |
@@ -354,8 +354,8 @@ discard block |
||
| 354 | 354 | private static function completeDescriptor(Descriptor $descriptor, ReflectionClass|ReflectionMethod $holder): void |
| 355 | 355 | { |
| 356 | 356 | $descriptor->holder = $holder instanceof ReflectionClass ? $holder->name : [$holder->class, $holder->name]; |
| 357 | - $descriptor->name = implode($descriptor->namePrefixes) . $descriptor->name; |
|
| 358 | - $descriptor->path = implode($descriptor->pathPrefixes) . $descriptor->path; |
|
| 357 | + $descriptor->name = implode($descriptor->namePrefixes).$descriptor->name; |
|
| 358 | + $descriptor->path = implode($descriptor->pathPrefixes).$descriptor->path; |
|
| 359 | 359 | $descriptor->methods = array_map(strtoupper(...), $descriptor->methods); |
| 360 | 360 | $descriptor->pattern = RouteCompiler::compileRoute($descriptor->path, $descriptor->patterns); |
| 361 | 361 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * @since 3.0.0 |
| 20 | 20 | */ |
| 21 | -#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)] |
|
| 21 | +#[Attribute(Attribute::TARGET_CLASS|Attribute::TARGET_METHOD)] |
|
| 22 | 22 | final class GetRoute extends Route |
| 23 | 23 | { |
| 24 | 24 | public function __construct(string $name, string $path = '') |