Skip to content

Commit 25e83a4

Browse files
committed
Cleanup in imports
1 parent ac9fe84 commit 25e83a4

File tree

18 files changed

+2
-41
lines changed

18 files changed

+2
-41
lines changed

src/Knp/Component/Pager/Event/Subscriber/Paginate/Doctrine/ORM/QuerySubscriber/UsesPaginator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public function items(ItemsEvent $event)
3131
$event->target
3232
->setFirstResult($event->getOffset())
3333
->setMaxResults($event->getLimit())
34+
->setHint(CountWalker::HINT_DISTINCT, $event->options['distinct'])
3435
;
3536

3637
$fetchJoinCollection = true;

tests/Test/Pager/Pagination/SlidingTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
use Test\Tool\BaseTestCase;
44
use Knp\Component\Pager\Paginator;
5-
use Knp\Component\Pager\Pagination\SlidingPagination;
6-
use Knp\Component\Pager\Pagination\PaginationInterface;
7-
use Knp\Component\Pager\Event\Subscriber\Paginate\PaginationSubscriber;
85

96
class SlidingTest extends BaseTestCase
107
{

tests/Test/Pager/Pagination/TraversableItemsTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
use Test\Tool\BaseTestCase;
44
use Knp\Component\Pager\Paginator;
5-
use Knp\Component\Pager\Pagination\SlidingPagination;
6-
use Knp\Component\Pager\Pagination\PaginationInterface;
7-
use Knp\Component\Pager\Event\Subscriber\Paginate\PaginationSubscriber;
85

96
class TraversableItemsTest extends BaseTestCase
107
{

tests/Test/Pager/PaginatorTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
use Test\Tool\BaseTestCase;
44
use Knp\Component\Pager\Paginator;
55
use Symfony\Component\EventDispatcher\EventDispatcher;
6-
use Knp\Component\Pager\Pagination\PaginationInterface;
76
use Knp\Component\Pager\Event\Subscriber\Paginate\PaginationSubscriber;
87

98
class PaginatorTest extends BaseTestCase

tests/Test/Pager/Subscriber/Paginate/ArrayTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22

33
use Test\Tool\BaseTestCase;
44
use Knp\Component\Pager\Paginator;
5-
use Knp\Component\Pager\Pagination\SlidingPagination;
65
use Symfony\Component\EventDispatcher\EventDispatcher;
76
use Test\Mock\PaginationSubscriber as MockPaginationSubscriber;
87
use Knp\Component\Pager\Pagination\PaginationInterface;
98
use Knp\Component\Pager\Event\Subscriber\Paginate\ArraySubscriber;
10-
use Knp\Component\Pager\Event\Subscriber\Paginate\PaginationSubscriber;
119

1210
class ArrayTest extends BaseTestCase
1311
{

tests/Test/Pager/Subscriber/Paginate/Doctrine/CollectionTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22

33
use Test\Tool\BaseTestCase;
44
use Knp\Component\Pager\Paginator;
5-
use Knp\Component\Pager\Pagination\SlidingPagination;
65
use Symfony\Component\EventDispatcher\EventDispatcher;
76
use Test\Mock\PaginationSubscriber as MockPaginationSubscriber;
87
use Knp\Component\Pager\Pagination\PaginationInterface;
98
use Knp\Component\Pager\Event\Subscriber\Paginate\Doctrine\CollectionSubscriber;
10-
use Knp\Component\Pager\Event\Subscriber\Paginate\PaginationSubscriber;
119
use Doctrine\Common\Collections\ArrayCollection;
1210

1311
class CollectionTest extends BaseTestCase

tests/Test/Pager/Subscriber/Paginate/Doctrine/ORM/AdvancedQueryTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44

55
use Test\Tool\BaseTestCaseORM;
66
use Knp\Component\Pager\Paginator;
7-
use Knp\Component\Pager\Pagination\SlidingPagination;
8-
use Symfony\Component\EventDispatcher\EventDispatcher;
9-
use Knp\Component\Pager\Pagination\PaginationInterface;
107
use Knp\Component\Pager\Event\Subscriber\Paginate\Doctrine\ORM\QuerySubscriber;
11-
use Knp\Component\Pager\Event\Subscriber\Paginate\PaginationSubscriber;
128
use Test\Fixture\Entity\Shop\Product;
139
use Test\Fixture\Entity\Shop\Tag;
1410
use Doctrine\ORM\Query;

tests/Test/Pager/Subscriber/Paginate/Doctrine/ORM/QueryTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Test\Tool\BaseTestCaseORM;
66
use Knp\Component\Pager\Paginator;
7-
use Knp\Component\Pager\Pagination\SlidingPagination;
87
use Symfony\Component\EventDispatcher\EventDispatcher;
98
use Knp\Component\Pager\Pagination\PaginationInterface;
109
use Knp\Component\Pager\Event\Subscriber\Paginate\Doctrine\ORM\QuerySubscriber;

tests/Test/Pager/Subscriber/Paginate/Doctrine/ORM/QueryTest/UsesPaginatorTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,10 @@
44

55
use Test\Tool\BaseTestCaseORM;
66
use Knp\Component\Pager\Paginator;
7-
use Knp\Component\Pager\Pagination\SlidingPagination;
8-
use Symfony\Component\EventDispatcher\EventDispatcher;
9-
use Knp\Component\Pager\Pagination\PaginationInterface;
107
use Knp\Component\Pager\Event\Subscriber\Paginate\Doctrine\ORM\QuerySubscriber;
11-
use Knp\Component\Pager\Event\Subscriber\Paginate\PaginationSubscriber;
128
use Test\Fixture\Entity\Shop\Product;
139
use Test\Fixture\Entity\Shop\Tag;
1410
use Doctrine\ORM\Query;
15-
use Knp\Component\Pager\Event\Subscriber\Paginate\Doctrine\ORM\QuerySubscriber\UsesPaginator;
1611

1712
class UsesPaginatorTest extends BaseTestCaseORM
1813
{

tests/Test/Pager/Subscriber/Paginate/SolariumQuerySubscriberTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
use Knp\Component\Pager\Paginator;
66
use Symfony\Component\EventDispatcher\EventDispatcher;
7-
use Knp\Component\Pager\Pagination\PaginationInterface;
8-
use Knp\Component\Pager\Event\Subscriber\Paginate\ArraySubscriber;
97
use Knp\Component\Pager\Event\Subscriber\Paginate\SolariumQuerySubscriber;
108

119
use Test\Mock\PaginationSubscriber as MockPaginationSubscriber;

0 commit comments

Comments
 (0)