1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Remove useless methods

Also fix a phpdoc block
This commit is contained in:
Jeremy Benoist 2019-05-24 15:43:30 +02:00
parent 0132ccd2a2
commit 629a3797bc
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 2 additions and 28 deletions

View file

@ -848,8 +848,8 @@ class EntryRestController extends WallabagRestController
/** /**
* Return information about the entry if it exist and depending on the id or not. * Return information about the entry if it exist and depending on the id or not.
* *
* @param Entry|null $entry * @param Entry|bool|null $entry
* @param bool $returnId * @param bool $returnId
* *
* @return bool|int * @return bool|int
*/ */

View file

@ -508,32 +508,6 @@ class EntryRepository extends EntityRepository
return $this->find($randomId); 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. * Return a query builder to be used by other getBuilderFor* method.
* *