@@ -235,6 +235,9 @@ |
||
| 235 | 235 | ]); |
| 236 | 236 | } |
| 237 | 237 | |
| 238 | + /** |
|
| 239 | + * @param null|string $token |
|
| 240 | + */ |
|
| 238 | 241 | private function generateOrGetApiKey(UserInterface $user, $token) |
| 239 | 242 | { |
| 240 | 243 | $apiKey = null; |
@@ -93,6 +93,9 @@ |
||
| 93 | 93 | return new SingleResourceResponse($list); |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | + /** |
|
| 97 | + * @param string $id |
|
| 98 | + */ |
|
| 96 | 99 | private function findArticleOr404($id) |
| 97 | 100 | { |
| 98 | 101 | if (null === $article = $this->get('swp.repository.article')->findOneById($id)) { |