]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
[wallabag/wallabag#2611] Fix PHPCS lint errors
authorCraig Roberts <craig@craig0990.co.uk>
Tue, 10 Apr 2018 11:50:26 +0000 (19:50 +0800)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 22 Jan 2019 19:42:25 +0000 (20:42 +0100)
src/Wallabag/ApiBundle/Controller/SearchRestController.php
tests/Wallabag/ApiBundle/Controller/SearchRestControllerTest.php

index c0b2cb24c4a2421e8a9c7f70885e81469df456d2..6620107d36e76d8f774065c61b5515057cdeb412 100644 (file)
@@ -10,13 +10,7 @@ use Pagerfanta\Adapter\DoctrineORMAdapter;
 use Pagerfanta\Pagerfanta;
 use Symfony\Component\HttpFoundation\JsonResponse;
 use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpFoundation\Response;
-use Symfony\Component\HttpKernel\Exception\HttpException;
 use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
-use Wallabag\CoreBundle\Entity\Entry;
-use Wallabag\CoreBundle\Entity\Tag;
-use Wallabag\CoreBundle\Event\EntryDeletedEvent;
-use Wallabag\CoreBundle\Event\EntrySavedEvent;
 
 class SearchRestController extends WallabagRestController
 {
index 5900ae53bf87716cd6a84e85507ebc96eb9d9935..f096f21b3cc4f603ade9116b8345ad2abf4581fd 100644 (file)
@@ -4,9 +4,6 @@ namespace Tests\Wallabag\ApiBundle\Controller;
 
 use Tests\Wallabag\ApiBundle\WallabagApiTestCase;
 use Wallabag\CoreBundle\Entity\Entry;
-use Wallabag\CoreBundle\Entity\Tag;
-use Wallabag\CoreBundle\Helper\ContentProxy;
-use Wallabag\UserBundle\Entity\User;
 
 class SearchRestControllerTest extends WallabagApiTestCase
 {
@@ -15,7 +12,7 @@ class SearchRestControllerTest extends WallabagApiTestCase
         $this->client->request('GET', '/api/search', [
             'page' => 1,
             'perPage' => 2,
-            'term' => 'entry' // 6 results
+            'term' => 'entry', // 6 results
         ]);
 
         $this->assertSame(200, $this->client->getResponse()->getStatusCode());
@@ -45,7 +42,7 @@ class SearchRestControllerTest extends WallabagApiTestCase
     public function testGetSearchWithNoLimit()
     {
         $this->client->request('GET', '/api/search', [
-            'term' => 'entry'
+            'term' => 'entry',
         ]);
 
         $this->assertSame(200, $this->client->getResponse()->getStatusCode());