From d8f9f37ab2deb172f8dfc58b3b3775990188762f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 26 Feb 2015 12:35:59 +0100 Subject: [PATCH] remove debug lines --- src/Wallabag/CoreBundle/Controller/WallabagRestController.php | 2 -- src/Wallabag/CoreBundle/Repository/EntryRepository.php | 4 ---- .../Tests/Controller/WallabagRestControllerTest.php | 2 -- 3 files changed, 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 */ public function getEntriesTagsAction(Entry $entry) { - var_dump($entry->getUser()->getId()); - var_dump($this->getUser()->getId()); if ($entry->getUser()->getId() != $this->getUser()->getId()) { throw $this->createAccessDeniedException(); } 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 ->where('t.user=:userId')->setParameter('userId', 1); return $qb->getQuery()->getOneOrNullResult(); - - return $qb - ->getQuery() - ->getOneOrNullResult(); } } 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 ->getRepository('WallabagCoreBundle:Entry') ->findOneWithTags(1); - var_dump($entry->getTitle()); - if (!$entry) { $this->markTestSkipped('No content found in db.'); } -- 2.41.0