@@ -11,18 +11,10 @@ |
||
11 | 11 | |
12 | 12 | namespace spec\Sylius\Bundle\CoreBundle\EventListener; |
13 | 13 | |
14 | -use Doctrine\Common\Collections\ArrayCollection; |
|
15 | 14 | use PhpSpec\ObjectBehavior; |
16 | -use Prophecy\Argument; |
|
17 | -use Sylius\Component\Core\Model\ChannelInterface; |
|
18 | 15 | use Sylius\Component\Core\Model\OrderInterface; |
19 | -use Sylius\Component\Core\Model\OrderItemInterface; |
|
20 | 16 | use Sylius\Component\Core\OrderProcessing\OrderRecalculatorInterface; |
21 | -use Sylius\Component\Core\OrderProcessing\OrderShipmentProcessorInterface; |
|
22 | -use Sylius\Component\Pricing\Calculator\DelegatingCalculatorInterface; |
|
23 | -use Sylius\Component\Pricing\Model\PriceableInterface; |
|
24 | 17 | use Sylius\Component\Resource\Exception\UnexpectedTypeException; |
25 | -use Sylius\Component\User\Model\GroupableInterface; |
|
26 | 18 | use Symfony\Component\EventDispatcher\GenericEvent; |
27 | 19 | |
28 | 20 | /** |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | 15 | use Prophecy\Argument; |
16 | -use spec\Sylius\Bundle\ArchetypeBundle\Form\Type\ArchetypeTypeSpec; |
|
17 | 16 | use Sylius\Component\Payment\Model\PaymentInterface; |
18 | 17 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
19 | 18 | use Symfony\Component\Form\FormEvent; |
@@ -12,8 +12,6 @@ |
||
12 | 12 | namespace spec\Sylius\Bundle\CoreBundle\Form\Type\Checkout; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | -use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; |
|
17 | 15 | use Symfony\Component\Form\AbstractType; |
18 | 16 | use Symfony\Component\Form\FormBuilderInterface; |
19 | 17 | use Symfony\Component\OptionsResolver\OptionsResolver; |
@@ -12,9 +12,7 @@ |
||
12 | 12 | namespace spec\Sylius\Bundle\CoreBundle\Form\Type\Checkout; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | 15 | use Sylius\Bundle\CoreBundle\Form\Type\Checkout\ShippingType; |
17 | -use Sylius\Component\Addressing\Matcher\ZoneMatcherInterface; |
|
18 | 16 | use Symfony\Component\Form\AbstractType; |
19 | 17 | use Symfony\Component\Form\FormBuilderInterface; |
20 | 18 | use Symfony\Component\OptionsResolver\OptionsResolver; |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | 15 | use Prophecy\Argument; |
16 | 16 | use Sylius\Bundle\CoreBundle\Form\Type\LegacyProductType; |
17 | -use Sylius\Bundle\ProductBundle\Form\Type\ProductType; |
|
18 | 17 | use Sylius\Bundle\ResourceBundle\Form\EventSubscriber\AddCodeFormSubscriber; |
19 | 18 | use Sylius\Component\Core\Model\Product; |
20 | 19 | use Sylius\Component\User\Canonicalizer\CanonicalizerInterface; |
@@ -12,9 +12,8 @@ |
||
12 | 12 | namespace spec\Sylius\Bundle\CoreBundle\Provider; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | -use Sylius\Component\Resource\Provider\AvailableLocalesProviderInterface; |
|
17 | 15 | use Sylius\Component\Locale\Model\LocaleInterface; |
16 | +use Sylius\Component\Resource\Provider\AvailableLocalesProviderInterface; |
|
18 | 17 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
19 | 18 | |
20 | 19 | /** |
@@ -11,13 +11,11 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\GridBundle\Doctrine\PHPCRODM; |
13 | 13 | |
14 | -use Pagerfanta\Adapter\DoctrineORMAdapter; |
|
14 | +use Doctrine\ODM\PHPCR\Query\Builder\QueryBuilder; |
|
15 | +use Pagerfanta\Adapter\DoctrineODMPhpcrAdapter; |
|
15 | 16 | use Pagerfanta\Pagerfanta; |
16 | 17 | use Sylius\Component\Grid\Data\DataSourceInterface; |
17 | -use Sylius\Component\Grid\Data\ExpressionBuilderInterface; |
|
18 | 18 | use Sylius\Component\Grid\Parameters; |
19 | -use Doctrine\ODM\PHPCR\Query\Builder\QueryBuilder; |
|
20 | -use Pagerfanta\Adapter\DoctrineODMPhpcrAdapter; |
|
21 | 19 | |
22 | 20 | class DataSource implements DataSourceInterface |
23 | 21 | { |
@@ -11,14 +11,13 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\GridBundle\Doctrine\PHPCRODM; |
13 | 13 | |
14 | -use Sylius\Component\Grid\Data\ExpressionBuilderInterface; |
|
15 | -use Doctrine\ODM\PHPCR\Query\Builder\QueryBuilder; |
|
16 | -use Doctrine\Common\Collections\Expr\CompositeExpression; |
|
17 | 14 | use Doctrine\Common\Collections\Expr\Comparison; |
15 | +use Doctrine\Common\Collections\Expr\CompositeExpression; |
|
16 | +use Doctrine\Common\Collections\Expr\Expression; |
|
18 | 17 | use Doctrine\Common\Collections\Expr\Value; |
19 | 18 | use Doctrine\ODM\PHPCR\Query\Builder\AbstractNode; |
20 | 19 | use Doctrine\ODM\PHPCR\Query\Builder\OperandFactory; |
21 | -use Doctrine\Common\Collections\Expr\Expression; |
|
20 | +use Doctrine\ODM\PHPCR\Query\Builder\QueryBuilder; |
|
22 | 21 | use Sylius\Bundle\GridBundle\Doctrine\PHPCRODM\ExtraComparison; |
23 | 22 | |
24 | 23 | /** |
@@ -11,22 +11,19 @@ |
||
11 | 11 | |
12 | 12 | namespace spec\Sylius\Bundle\GridBundle\Doctrine\PHPCRODM; |
13 | 13 | |
14 | -use PhpSpec\ObjectBehavior; |
|
15 | -use Prophecy\Argument; |
|
16 | -use Doctrine\ODM\PHPCR\DocumentManagerInterface; |
|
17 | -use Sylius\Bundle\GridBundle\Doctrine\PHPCRODM\DataSource; |
|
18 | -use Sylius\Component\Grid\Data\DataSourceInterface; |
|
19 | 14 | use Doctrine\Common\Collections\Expr\Comparison; |
20 | -use Doctrine\ODM\PHPCR\Query\Builder\QueryBuilder; |
|
21 | -use Sylius\Bundle\GridBundle\Doctrine\PHPCRODM\ExpressionBuilder; |
|
22 | -use Doctrine\ODM\PHPCR\Query\Builder\ConstraintAndx; |
|
23 | 15 | use Doctrine\Common\Collections\Expr\Value; |
24 | 16 | use Doctrine\ODM\PHPCR\Query\Builder\ConstraintComparison; |
25 | 17 | use Doctrine\ODM\PHPCR\Query\Builder\ConstraintOrx; |
26 | -use Sylius\Component\Grid\Parameters; |
|
27 | -use Pagerfanta\Pagerfanta; |
|
28 | 18 | use Doctrine\ODM\PHPCR\Query\Builder\OrderBy; |
29 | 19 | use Doctrine\ODM\PHPCR\Query\Builder\Ordering; |
20 | +use Doctrine\ODM\PHPCR\Query\Builder\QueryBuilder; |
|
21 | +use Pagerfanta\Pagerfanta; |
|
22 | +use PhpSpec\ObjectBehavior; |
|
23 | +use Sylius\Bundle\GridBundle\Doctrine\PHPCRODM\DataSource; |
|
24 | +use Sylius\Bundle\GridBundle\Doctrine\PHPCRODM\ExpressionBuilder; |
|
25 | +use Sylius\Component\Grid\Data\DataSourceInterface; |
|
26 | +use Sylius\Component\Grid\Parameters; |
|
30 | 27 | |
31 | 28 | /** |
32 | 29 | * @mixin Driver |