@@ -106,7 +106,8 @@ |
||
| 106 | 106 | * {@inheritdoc} |
| 107 | 107 | */ |
| 108 | 108 | public function getLatestProductsNames() |
| 109 | - {; |
|
| 109 | + { |
|
| 110 | +; |
|
| 110 | 111 | return array_map( |
| 111 | 112 | function (NodeElement $element) { return $element->getText(); }, |
| 112 | 113 | $this->getDocument()->findAll('css', '.sylius-product-name') |
@@ -11,9 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace Sylius\Bundle\CoreBundle\Controller; |
| 13 | 13 | |
| 14 | -use Doctrine\ORM\EntityManager; |
|
| 15 | 14 | use FOS\RestBundle\View\View; |
| 16 | -use Payum\Core\Registry\RegistryInterface; |
|
| 17 | 15 | use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration; |
| 18 | 16 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
| 19 | 17 | use Sylius\Component\Order\Context\CartContextInterface; |
@@ -14,16 +14,15 @@ |
||
| 14 | 14 | use Sylius\Bundle\PromotionBundle\Controller\PromotionCouponController; |
| 15 | 15 | use Sylius\Bundle\PromotionBundle\Form\Type\PromotionActionType; |
| 16 | 16 | use Sylius\Bundle\PromotionBundle\Form\Type\PromotionCouponType; |
| 17 | -use Sylius\Bundle\PromotionBundle\Form\Type\PromotionType; |
|
| 18 | 17 | use Sylius\Bundle\PromotionBundle\Form\Type\PromotionRuleType; |
| 18 | +use Sylius\Bundle\PromotionBundle\Form\Type\PromotionType; |
|
| 19 | 19 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
| 20 | -use Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType; |
|
| 21 | 20 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
| 21 | +use Sylius\Component\Promotion\Model\Promotion; |
|
| 22 | 22 | use Sylius\Component\Promotion\Model\PromotionAction; |
| 23 | 23 | use Sylius\Component\Promotion\Model\PromotionActionInterface; |
| 24 | 24 | use Sylius\Component\Promotion\Model\PromotionCoupon; |
| 25 | 25 | use Sylius\Component\Promotion\Model\PromotionCouponInterface; |
| 26 | -use Sylius\Component\Promotion\Model\Promotion; |
|
| 27 | 26 | use Sylius\Component\Promotion\Model\PromotionInterface; |
| 28 | 27 | use Sylius\Component\Promotion\Model\PromotionRule; |
| 29 | 28 | use Sylius\Component\Promotion\Model\PromotionRuleInterface; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Sylius\Bundle\TaxationBundle\DependencyInjection; |
| 13 | 13 | |
| 14 | 14 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
| 15 | -use Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType; |
|
| 16 | 15 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
| 17 | 16 | use Sylius\Bundle\TaxationBundle\Form\Type\TaxCategoryType; |
| 18 | 17 | use Sylius\Bundle\TaxationBundle\Form\Type\TaxRateType; |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | /** |
| 72 | 72 | * @param TaxonInterface $taxon |
| 73 | 73 | * |
| 74 | - * @return callable|null |
|
| 74 | + * @return null|\Closure |
|
| 75 | 75 | */ |
| 76 | 76 | private function getFilterTaxonOption(TaxonInterface $taxon) |
| 77 | 77 | { |
@@ -195,7 +195,7 @@ |
||
| 195 | 195 | ->arrayNode('form') |
| 196 | 196 | ->addDefaultsIfNotSet() |
| 197 | 197 | ->children() |
| 198 | - ->scalarNode('default')->defaultValue(ShippingCategoryType::class)->cannotBeEmpty()->end() |
|
| 198 | + ->scalarNode('default')->defaultValue(ShippingCategoryType::class)->cannotBeEmpty()->end() |
|
| 199 | 199 | ->end() |
| 200 | 200 | ->end() |
| 201 | 201 | ->end() |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Sylius\Bundle\TaxationBundle\DependencyInjection; |
| 13 | 13 | |
| 14 | 14 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
| 15 | -use Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType; |
|
| 16 | 15 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
| 17 | 16 | use Sylius\Bundle\TaxationBundle\Form\Type\TaxCategoryType; |
| 18 | 17 | use Sylius\Bundle\TaxationBundle\Form\Type\TaxRateType; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Sylius\Bundle\TaxationBundle\DependencyInjection; |
| 13 | 13 | |
| 14 | 14 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
| 15 | -use Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType; |
|
| 16 | 15 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
| 17 | 16 | use Sylius\Bundle\TaxationBundle\Form\Type\TaxCategoryType; |
| 18 | 17 | use Sylius\Bundle\TaxationBundle\Form\Type\TaxRateType; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Sylius\Bundle\TaxationBundle\DependencyInjection; |
| 13 | 13 | |
| 14 | 14 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
| 15 | -use Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType; |
|
| 16 | 15 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
| 17 | 16 | use Sylius\Bundle\TaxationBundle\Form\Type\TaxCategoryType; |
| 18 | 17 | use Sylius\Bundle\TaxationBundle\Form\Type\TaxRateType; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Sylius\Bundle\TaxationBundle\DependencyInjection; |
| 13 | 13 | |
| 14 | 14 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
| 15 | -use Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType; |
|
| 16 | 15 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
| 17 | 16 | use Sylius\Bundle\TaxationBundle\Form\Type\TaxCategoryType; |
| 18 | 17 | use Sylius\Bundle\TaxationBundle\Form\Type\TaxRateType; |