@@ -13,8 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Behat\Mink\Element\NodeElement; |
| 15 | 15 | use Behat\Mink\Session; |
| 16 | -use Symfony\Component\Routing\Generator\UrlGeneratorInterface; |
|
| 17 | -use Symfony\Component\Routing\RequestContext; |
|
| 18 | 16 | use Symfony\Component\Routing\RouterInterface; |
| 19 | 17 | |
| 20 | 18 | /** |
@@ -16,8 +16,8 @@ |
||
| 16 | 16 | use Sylius\Bundle\ReviewBundle\Doctrine\ORM\ReviewRepository; |
| 17 | 17 | use Sylius\Bundle\ReviewBundle\Form\Type\ReviewType; |
| 18 | 18 | use Sylius\Component\Resource\Factory\Factory; |
| 19 | -use Sylius\Component\Review\Model\ReviewerInterface; |
|
| 20 | 19 | use Sylius\Component\Review\Model\ReviewInterface; |
| 20 | +use Sylius\Component\Review\Model\ReviewerInterface; |
|
| 21 | 21 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
| 22 | 22 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
| 23 | 23 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
@@ -12,9 +12,9 @@ |
||
| 12 | 12 | namespace Sylius\Component\Core\Resolver; |
| 13 | 13 | |
| 14 | 14 | use Sylius\Component\Core\Model\ChannelInterface; |
| 15 | +use Sylius\Component\Core\Model\ShipmentInterface as CoreShipmentInterface; |
|
| 15 | 16 | use Sylius\Component\Shipping\Exception\UnresolvedDefaultShippingMethodException; |
| 16 | 17 | use Sylius\Component\Shipping\Model\ShipmentInterface; |
| 17 | -use Sylius\Component\Core\Model\ShipmentInterface as CoreShipmentInterface; |
|
| 18 | 18 | use Sylius\Component\Shipping\Repository\ShippingMethodRepositoryInterface; |
| 19 | 19 | use Sylius\Component\Shipping\Resolver\DefaultShippingMethodResolverInterface; |
| 20 | 20 | use Webmozart\Assert\Assert; |
@@ -13,9 +13,9 @@ |
||
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | 15 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
| 16 | -use Sylius\Component\Taxation\Model\TaxableInterface; |
|
| 17 | 16 | use Sylius\Component\Taxation\Model\TaxCategoryInterface; |
| 18 | 17 | use Sylius\Component\Taxation\Model\TaxRateInterface; |
| 18 | +use Sylius\Component\Taxation\Model\TaxableInterface; |
|
| 19 | 19 | use Sylius\Component\Taxation\Resolver\TaxRateResolverInterface; |
| 20 | 20 | |
| 21 | 21 | /** |
@@ -28,7 +28,8 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | class ThemeAwareTranslatorSpec extends ObjectBehavior |
| 30 | 30 | { |
| 31 | - function let(TranslatorInterface $translator, ThemeContextInterface $themeContext) { |
|
| 31 | + function let(TranslatorInterface $translator, ThemeContextInterface $themeContext) |
|
| 32 | + { |
|
| 32 | 33 | $translator->implement(TranslatorBagInterface::class); |
| 33 | 34 | |
| 34 | 35 | $this->beConstructedWith($translator, $themeContext); |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace spec\Sylius\Component\Payment\Resolver; |
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | -use Prophecy\Argument; |
|
| 16 | 15 | use Sylius\Component\Payment\Model\PaymentInterface; |
| 17 | 16 | use Sylius\Component\Payment\Model\PaymentMethodInterface; |
| 18 | 17 | use Sylius\Component\Payment\Resolver\MethodsResolverInterface; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace spec\Sylius\Component\Payment\Resolver; |
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | -use Prophecy\Argument; |
|
| 16 | 15 | use Sylius\Component\Payment\Model\PaymentInterface; |
| 17 | 16 | use Sylius\Component\Payment\Model\PaymentMethodInterface; |
| 18 | 17 | use Sylius\Component\Payment\Resolver\MethodsResolverInterface; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace spec\Sylius\Component\Payment\Resolver; |
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | -use Prophecy\Argument; |
|
| 16 | 15 | use Sylius\Component\Payment\Model\PaymentInterface; |
| 17 | 16 | use Sylius\Component\Payment\Model\PaymentMethodInterface; |
| 18 | 17 | use Sylius\Component\Payment\Resolver\MethodsResolverInterface; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace spec\Sylius\Component\Payment\Resolver; |
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | -use Prophecy\Argument; |
|
| 16 | 15 | use Sylius\Component\Payment\Model\PaymentInterface; |
| 17 | 16 | use Sylius\Component\Payment\Model\PaymentMethodInterface; |
| 18 | 17 | use Sylius\Component\Payment\Resolver\MethodsResolverInterface; |
@@ -87,7 +87,8 @@ |
||
| 87 | 87 | * |
| 88 | 88 | * @return \Generator |
| 89 | 89 | */ |
| 90 | - private function createGenerator(Collaborator ...$collaborators) { |
|
| 90 | + private function createGenerator(Collaborator ...$collaborators) |
|
| 91 | + { |
|
| 91 | 92 | foreach ($collaborators as $collaborator) { |
| 92 | 93 | yield $collaborator->getWrappedObject() => []; |
| 93 | 94 | } |