[wallabag/wallabag#2611] Fix PHPCS lint errors

This commit is contained in:
Craig Roberts 2018-04-10 19:50:26 +08:00 committed by Jeremy Benoist
parent b32057980e
commit 9133bd02d1
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 2 additions and 11 deletions

View 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
{

View 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());