From: Thomas Citharel Date: Sat, 25 Jun 2016 17:25:50 +0000 (+0200) Subject: CS X-Git-Tag: 2.1.0~58^2~2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=9bf83f1fb8d588b871a5d12289179de087756d02;p=github%2Fwallabag%2Fwallabag.git CS --- 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); }