From 9bf83f1fb8d588b871a5d12289179de087756d02 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sat, 25 Jun 2016 19:25:50 +0200 Subject: [PATCH] CS --- .../ApiBundle/Controller/WallabagRestController.php | 3 +-- 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 public function deleteTagLabelAction(Request $request) { $this->validateAuthentication(); - $label = $request->query->get('tag',''); + $label = $request->query->get('tag', ''); $tag = $this->getDoctrine()->getRepository('WallabagCoreBundle:Tag')->findOneByLabel($label); $this->getDoctrine() @@ -412,7 +412,6 @@ class WallabagRestController extends FOSRestController return $this->renderJsonResponse($json); } - /** * Retrieve version number. * 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 } /** - * Remove tags from all user entries + * Remove tags from all user entries. * - * @param int $userId + * @param int $userId * @param Array $tags */ - - public function removeTags($userId, $tags) { + public function removeTags($userId, $tags) + { foreach ($tags as $tag) { $this->removeTag($userId, $tag); } -- 2.41.0