]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Remove useless methods 3944/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 24 May 2019 13:43:30 +0000 (15:43 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 24 May 2019 13:46:28 +0000 (15:46 +0200)
Also fix a phpdoc block

src/Wallabag/ApiBundle/Controller/EntryRestController.php
src/Wallabag/CoreBundle/Repository/EntryRepository.php

index 77eb489e61ea099e4326b4883dc1711760bd177e..bdd02129a3b568cce34b870896db0ac4a921de23 100644 (file)
@@ -848,8 +848,8 @@ class EntryRestController extends WallabagRestController
     /**
      * Return information about the entry if it exist and depending on the id or not.
      *
-     * @param Entry|null $entry
-     * @param bool       $returnId
+     * @param Entry|bool|null $entry
+     * @param bool            $returnId
      *
      * @return bool|int
      */
index 7c4a05edeef5fe9c425ecf82ccfee0b3168dc88a..880e7c65aa0a0e0b8aa2007171f76feadae219c3 100644 (file)
@@ -508,32 +508,6 @@ class EntryRepository extends EntityRepository
         return $this->find($randomId);
     }
 
-    /**
-     * Inject a UrlHasher.
-     *
-     * @param UrlHasher $hasher
-     */
-    public function setUrlHasher(UrlHasher $hasher)
-    {
-        $this->urlHasher = $hasher;
-    }
-
-    /**
-     * Get the UrlHasher, or create a default one if not injected.
-     *
-     * XXX: the default uses the default hash algorithm
-     *
-     * @return UrlHasher
-     */
-    protected function getUrlHasher()
-    {
-        if (!isset($this->urlHasher)) {
-            $this->setUrlHasher(new UrlHasher());
-        }
-
-        return $this->urlHasher;
-    }
-
     /**
      * Return a query builder to be used by other getBuilderFor* method.
      *