@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | - * @param $code |
|
| 96 | + * @param string $code |
|
| 97 | 97 | * |
| 98 | 98 | * @return null|string |
| 99 | 99 | */ |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | - * @return array |
|
| 106 | + * @return string[] |
|
| 107 | 107 | */ |
| 108 | 108 | private function getAvailableCountries() |
| 109 | 109 | { |
@@ -194,6 +194,7 @@ |
||
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | 196 | * @param object $entity |
| 197 | + * @param string $value |
|
| 197 | 198 | * |
| 198 | 199 | * @return Route |
| 199 | 200 | */ |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | */ |
| 190 | 190 | private function getFieldValue($entity, $fieldName) |
| 191 | 191 | { |
| 192 | - return $entity->{'get'.ucfirst($fieldName)}(); |
|
| 192 | + return $entity->{'get' . ucfirst($fieldName)}(); |
|
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | /** |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | } |
| 208 | 208 | $defaults = ['_sylius_entity' => $entity, $fieldName => $value]; |
| 209 | 209 | |
| 210 | - return new Route($this->routeConfigs[$className]['prefix'].'/'.$value, $defaults); |
|
| 210 | + return new Route($this->routeConfigs[$className]['prefix'] . '/' . $value, $defaults); |
|
| 211 | 211 | } |
| 212 | 212 | |
| 213 | 213 | /** |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Sylius\Bundle\CoreBundle\Sitemap\Factory\SitemapUrlFactoryInterface; |
| 15 | 15 | use Sylius\Bundle\CoreBundle\Sitemap\Model\ChangeFrequency; |
| 16 | -use Sylius\Bundle\CoreBundle\Sitemap\Model\SitemapUrlInterface; |
|
| 17 | 16 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
| 18 | 17 | use Symfony\Component\Routing\RouterInterface; |
| 19 | 18 | |
@@ -14,10 +14,7 @@ |
||
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | 15 | use Prophecy\Argument; |
| 16 | 16 | use Sylius\Bundle\CoreBundle\EventListener\OrderPromotionListener; |
| 17 | -use Sylius\Component\Core\Model\OrderInterface; |
|
| 18 | -use Sylius\Component\Promotion\Processor\PromotionProcessorInterface; |
|
| 19 | 17 | use Sylius\Component\Promotion\SyliusPromotionEvents; |
| 20 | -use Sylius\Component\Resource\Exception\UnexpectedTypeException; |
|
| 21 | 18 | use Symfony\Component\EventDispatcher\GenericEvent; |
| 22 | 19 | use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface; |
| 23 | 20 | use Symfony\Component\HttpFoundation\Session\SessionInterface; |
@@ -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; |