diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-02-26 12:35:59 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-03-06 21:09:15 +0100 |
commit | d8f9f37ab2deb172f8dfc58b3b3775990188762f (patch) | |
tree | f14912da8f63f03acf21b9ddbd47c9403b1f0fe3 | |
parent | 092ca70725b0263390e45c46f93828c613eca3f0 (diff) | |
download | wallabag-d8f9f37ab2deb172f8dfc58b3b3775990188762f.tar.gz wallabag-d8f9f37ab2deb172f8dfc58b3b3775990188762f.tar.zst wallabag-d8f9f37ab2deb172f8dfc58b3b3775990188762f.zip |
remove debug lines
3 files changed, 0 insertions, 8 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php index 81bfbe12..4215e447 100644 --- a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php | |||
@@ -237,8 +237,6 @@ class WallabagRestController extends Controller | |||
237 | */ | 237 | */ |
238 | public function getEntriesTagsAction(Entry $entry) | 238 | public function getEntriesTagsAction(Entry $entry) |
239 | { | 239 | { |
240 | var_dump($entry->getUser()->getId()); | ||
241 | var_dump($this->getUser()->getId()); | ||
242 | if ($entry->getUser()->getId() != $this->getUser()->getId()) { | 240 | if ($entry->getUser()->getId() != $this->getUser()->getId()) { |
243 | throw $this->createAccessDeniedException(); | 241 | throw $this->createAccessDeniedException(); |
244 | } | 242 | } |
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index a8085ac9..e102edc7 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -132,9 +132,5 @@ class EntryRepository extends EntityRepository | |||
132 | ->where('t.user=:userId')->setParameter('userId', 1); | 132 | ->where('t.user=:userId')->setParameter('userId', 1); |
133 | 133 | ||
134 | return $qb->getQuery()->getOneOrNullResult(); | 134 | return $qb->getQuery()->getOneOrNullResult(); |
135 | |||
136 | return $qb | ||
137 | ->getQuery() | ||
138 | ->getOneOrNullResult(); | ||
139 | } | 135 | } |
140 | } | 136 | } |
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php index 04448537..b0f4a842 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php | |||
@@ -163,8 +163,6 @@ class WallabagRestControllerTest extends WallabagTestCase | |||
163 | ->getRepository('WallabagCoreBundle:Entry') | 163 | ->getRepository('WallabagCoreBundle:Entry') |
164 | ->findOneWithTags(1); | 164 | ->findOneWithTags(1); |
165 | 165 | ||
166 | var_dump($entry->getTitle()); | ||
167 | |||
168 | if (!$entry) { | 166 | if (!$entry) { |
169 | $this->markTestSkipped('No content found in db.'); | 167 | $this->markTestSkipped('No content found in db.'); |
170 | } | 168 | } |