@@ -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 | /** |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $registry = $container->findDefinition('sylius.registry.grid_driver'); |
33 | 33 | |
34 | 34 | foreach ($container->findTaggedServiceIds('sylius.grid_driver') as $id => $attributes) { |
35 | - if (!isset($attributes[0]['alias'])) { |
|
35 | + if (!isset($attributes[0]['alias'])) { |
|
36 | 36 | throw new \InvalidArgumentException('Tagged grid drivers needs to have `alias` attribute.'); |
37 | 37 | } |
38 | 38 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $registry = $container->getDefinition('sylius.registry.grid_filter'); |
33 | 33 | |
34 | 34 | foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) { |
35 | - if (!isset($attributes[0]['type'])) { |
|
35 | + if (!isset($attributes[0]['type'])) { |
|
36 | 36 | throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.'); |
37 | 37 | } |
38 | 38 |
@@ -124,7 +124,8 @@ |
||
124 | 124 | if (isset($options['suffix'])) { |
125 | 125 | $suffix = $options['suffix']; |
126 | 126 | |
127 | - if (substr($this->parentSlug, -strlen($suffix)) === $suffix) { //endsWith |
|
127 | + if (substr($this->parentSlug, -strlen($suffix)) === $suffix) { |
|
128 | +//endsWith |
|
128 | 129 | $this->parentSlug = substr_replace($this->parentSlug, '', -1 * strlen($suffix)); |
129 | 130 | } |
130 | 131 | } |
@@ -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; |