]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
CS
authorThomas Citharel <tcit@tcit.fr>
Sat, 25 Jun 2016 17:25:50 +0000 (19:25 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 23 Aug 2016 05:26:58 +0000 (07:26 +0200)
src/Wallabag/ApiBundle/Controller/WallabagRestController.php
src/Wallabag/CoreBundle/Repository/EntryRepository.php

index 8eaff5f6b0c1610a18ed989aa1dd427584f03660..43225149e4728e3eef4c5566c59c0cb79f3fea6b 100644 (file)
@@ -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.
      *
index 63c4c3be9f0f21f021a2c9d010f9fb3085499439..fada40bbd4c5c8e24010c0b2140e23a6b03ecb35 100644 (file)
@@ -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<Tag> $tags
      */
-
-    public function removeTags($userId, $tags) {
+    public function removeTags($userId, $tags)
+    {
         foreach ($tags as $tag) {
             $this->removeTag($userId, $tag);
         }