@@ -97,7 +97,7 @@ |
||
| 97 | 97 | * Decode JSON |
| 98 | 98 | * |
| 99 | 99 | * @param string $content |
| 100 | - * @return mixed |
|
| 100 | + * @return \stdClass |
|
| 101 | 101 | * @throws BadRequestHttpException |
| 102 | 102 | */ |
| 103 | 103 | protected function decodeContent(string $content): \stdClass |
@@ -101,8 +101,7 @@ |
||
| 101 | 101 | |
| 102 | 102 | try { |
| 103 | 103 | $document = $this->hydrator->hydrate($decoded); |
| 104 | - } |
|
| 105 | - catch (InvalidDocumentException $exception) { |
|
| 104 | + } catch (InvalidDocumentException $exception) { |
|
| 106 | 105 | throw new BadRequestHttpException('Document hydration error: ' . $exception->getMessage(), $exception); |
| 107 | 106 | } |
| 108 | 107 | |
@@ -146,7 +146,7 @@ |
||
| 146 | 146 | * Create definition of routes for a route repository by a collection of endpoints |
| 147 | 147 | * |
| 148 | 148 | * @param array $resources |
| 149 | - * @return array |
|
| 149 | + * @return string|null |
|
| 150 | 150 | */ |
| 151 | 151 | protected function createRoutesDefinition(array $resources): array |
| 152 | 152 | { |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | /** |
| 68 | 68 | * Get URL generator |
| 69 | 69 | * |
| 70 | - * @return UrlGeneratorInterface |
|
| 70 | + * @return \Symfony\Component\Routing\Generator\UrlGeneratorInterface |
|
| 71 | 71 | */ |
| 72 | 72 | protected function getUrlGenerator(): UrlGeneratorInterface |
| 73 | 73 | { |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | /** |
| 85 | 85 | * Assemble routes collection |
| 86 | 86 | * |
| 87 | - * @return RouteCollection |
|
| 87 | + * @return \Symfony\Component\Routing\RouteCollection |
|
| 88 | 88 | */ |
| 89 | 89 | protected function assembleRoutesCollection(): RouteCollection |
| 90 | 90 | { |