diff options
Diffstat (limited to 'src/Wallabag')
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/WallabagRestController.php | 3 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 8 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index 8eaff5f6..43225149 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php | |||
@@ -367,7 +367,7 @@ class WallabagRestController extends FOSRestController | |||
367 | public function deleteTagLabelAction(Request $request) | 367 | public function deleteTagLabelAction(Request $request) |
368 | { | 368 | { |
369 | $this->validateAuthentication(); | 369 | $this->validateAuthentication(); |
370 | $label = $request->query->get('tag',''); | 370 | $label = $request->query->get('tag', ''); |
371 | 371 | ||
372 | $tag = $this->getDoctrine()->getRepository('WallabagCoreBundle:Tag')->findOneByLabel($label); | 372 | $tag = $this->getDoctrine()->getRepository('WallabagCoreBundle:Tag')->findOneByLabel($label); |
373 | $this->getDoctrine() | 373 | $this->getDoctrine() |
@@ -412,7 +412,6 @@ class WallabagRestController extends FOSRestController | |||
412 | return $this->renderJsonResponse($json); | 412 | return $this->renderJsonResponse($json); |
413 | } | 413 | } |
414 | 414 | ||
415 | |||
416 | /** | 415 | /** |
417 | * Retrieve version number. | 416 | * Retrieve version number. |
418 | * | 417 | * |
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index 63c4c3be..fada40bb 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -223,13 +223,13 @@ class EntryRepository extends EntityRepository | |||
223 | } | 223 | } |
224 | 224 | ||
225 | /** | 225 | /** |
226 | * Remove tags from all user entries | 226 | * Remove tags from all user entries. |
227 | * | 227 | * |
228 | * @param int $userId | 228 | * @param int $userId |
229 | * @param Array<Tag> $tags | 229 | * @param Array<Tag> $tags |
230 | */ | 230 | */ |
231 | 231 | public function removeTags($userId, $tags) | |
232 | public function removeTags($userId, $tags) { | 232 | { |
233 | foreach ($tags as $tag) { | 233 | foreach ($tags as $tag) { |
234 | $this->removeTag($userId, $tag); | 234 | $this->removeTag($userId, $tag); |
235 | } | 235 | } |