diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2017-06-01 10:29:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-01 10:29:32 +0200 |
commit | 5d03e2d1a58d7961aeb3b93dbd864731719af921 (patch) | |
tree | 702aa580c60c788ee51ace0ed79409491854c825 /src/Wallabag/CoreBundle/Helper | |
parent | 2a0eec07a5630401a9ceb7add65604f79238f10c (diff) | |
parent | 3a6af6c580b686593045a8f0cfbfc478aa93943c (diff) | |
download | wallabag-5d03e2d1a58d7961aeb3b93dbd864731719af921.tar.gz wallabag-5d03e2d1a58d7961aeb3b93dbd864731719af921.tar.zst wallabag-5d03e2d1a58d7961aeb3b93dbd864731719af921.zip |
Merge pull request #3172 from wallabag/more-scruti
More Scrutinizer issues fixed
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/PreparePagerForEntries.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/PreparePagerForEntries.php b/src/Wallabag/CoreBundle/Helper/PreparePagerForEntries.php index 7d3798b9..df579ebd 100644 --- a/src/Wallabag/CoreBundle/Helper/PreparePagerForEntries.php +++ b/src/Wallabag/CoreBundle/Helper/PreparePagerForEntries.php | |||
@@ -20,16 +20,15 @@ class PreparePagerForEntries | |||
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @param AdapterInterface $adapter | 22 | * @param AdapterInterface $adapter |
23 | * @param int $page | ||
24 | * | 23 | * |
25 | * @return null|Pagerfanta | 24 | * @return null|Pagerfanta |
26 | */ | 25 | */ |
27 | public function prepare(AdapterInterface $adapter, $page = 1) | 26 | public function prepare(AdapterInterface $adapter) |
28 | { | 27 | { |
29 | $user = $this->tokenStorage->getToken() ? $this->tokenStorage->getToken()->getUser() : null; | 28 | $user = $this->tokenStorage->getToken() ? $this->tokenStorage->getToken()->getUser() : null; |
30 | 29 | ||
31 | if (null === $user || !is_object($user)) { | 30 | if (null === $user || !is_object($user)) { |
32 | return null; | 31 | return; |
33 | } | 32 | } |
34 | 33 | ||
35 | $entries = new Pagerfanta($adapter); | 34 | $entries = new Pagerfanta($adapter); |