@@ -969,7 +969,7 @@ discard block |
||
| 969 | 969 | ], |
| 970 | 970 | ]; |
| 971 | 971 | $routeFactory->createRoute('/products/new', $createDefaults, [], [], '', [], ['GET', 'POST']) |
| 972 | - ->willReturn($createRoute); |
|
| 972 | + ->willReturn($createRoute); |
|
| 973 | 973 | $routeCollection->add('sylius_product_create', $createRoute)->shouldBeCalled(); |
| 974 | 974 | |
| 975 | 975 | $updateDefaults = [ |
@@ -979,7 +979,7 @@ discard block |
||
| 979 | 979 | ], |
| 980 | 980 | ]; |
| 981 | 981 | $routeFactory->createRoute('/products/{id}/edit', $updateDefaults, [], [], '', [], ['GET', 'PUT', 'PATCH']) |
| 982 | - ->willReturn($updateRoute); |
|
| 982 | + ->willReturn($updateRoute); |
|
| 983 | 983 | $routeCollection->add('sylius_product_update', $updateRoute)->shouldBeCalled(); |
| 984 | 984 | |
| 985 | 985 | $deleteDefaults = [ |
@@ -989,7 +989,7 @@ discard block |
||
| 989 | 989 | ], |
| 990 | 990 | ]; |
| 991 | 991 | $routeFactory->createRoute('/products/{id}', $deleteDefaults, [], [], '', [], ['DELETE']) |
| 992 | - ->willReturn($deleteRoute); |
|
| 992 | + ->willReturn($deleteRoute); |
|
| 993 | 993 | $routeCollection->add('sylius_product_delete', $deleteRoute)->shouldBeCalled(); |
| 994 | 994 | |
| 995 | 995 | $this->load($configuration, 'sylius.resource')->shouldReturn($routeCollection); |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; |
| 15 | 15 | use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
| 16 | -use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
|
| 17 | 16 | use Symfony\Component\Form\Extension\Core\Type\TextType; |
| 17 | +use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
|
| 18 | 18 | use Symfony\Component\Form\FormBuilderInterface; |
| 19 | 19 | use Symfony\Component\OptionsResolver\OptionsResolver; |
| 20 | 20 | use Symfony\Component\Validator\Constraints\Valid; |
@@ -16,13 +16,13 @@ |
||
| 16 | 16 | use Sylius\Behat\NotificationType; |
| 17 | 17 | use Sylius\Behat\Page\Admin\Crud\CreatePageInterface; |
| 18 | 18 | use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface; |
| 19 | +use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
| 19 | 20 | use Sylius\Behat\Page\Admin\Product\CreateConfigurableProductPageInterface; |
| 20 | 21 | use Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface; |
| 21 | 22 | use Sylius\Behat\Page\Admin\Product\IndexPageInterface; |
| 22 | 23 | use Sylius\Behat\Page\Admin\Product\IndexPerTaxonPageInterface; |
| 23 | 24 | use Sylius\Behat\Page\Admin\Product\UpdateConfigurableProductPageInterface; |
| 24 | 25 | use Sylius\Behat\Page\Admin\Product\UpdateSimpleProductPageInterface; |
| 25 | -use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
| 26 | 26 | use Sylius\Behat\Page\SymfonyPageInterface; |
| 27 | 27 | use Sylius\Behat\Service\NotificationCheckerInterface; |
| 28 | 28 | use Sylius\Behat\Service\Resolver\CurrentPageResolverInterface; |
@@ -16,8 +16,8 @@ |
||
| 16 | 16 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
| 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; |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | $objects = $this->loadFixturesFromFile('books.yml'); |
| 77 | 77 | |
| 78 | 78 | $data = |
| 79 | - <<<EOT |
|
| 79 | + <<<EOT |
|
| 80 | 80 | { |
| 81 | 81 | "author": "Christie Golden" |
| 82 | 82 | } |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | $objects = $this->loadFixturesFromFile('comic_books.yml'); |
| 86 | 86 | |
| 87 | 87 | $data = |
| 88 | - <<<EOT |
|
| 88 | + <<<EOT |
|
| 89 | 89 | { |
| 90 | 90 | "authorFirstName": "Joe", |
| 91 | 91 | "authorLastName": "Kelly" |
@@ -39,8 +39,8 @@ |
||
| 39 | 39 | public function getFunctions(): array |
| 40 | 40 | { |
| 41 | 41 | return [ |
| 42 | - new \Twig_Function('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 43 | - new \Twig_Function('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 42 | + new \Twig_Function('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 43 | + new \Twig_Function('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 44 | 44 | ]; |
| 45 | 45 | } |
| 46 | 46 | } |
@@ -27,8 +27,8 @@ |
||
| 27 | 27 | use Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface; |
| 28 | 28 | use Sylius\Bundle\ResourceBundle\Controller\ResourceDeleteHandlerInterface; |
| 29 | 29 | use Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface; |
| 30 | -use Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface; |
|
| 31 | 30 | use Sylius\Bundle\ResourceBundle\Controller\ResourceUpdateHandlerInterface; |
| 31 | +use Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface; |
|
| 32 | 32 | use Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface; |
| 33 | 33 | use Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface; |
| 34 | 34 | use Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface; |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | namespace Sylius\Bundle\CoreBundle\Collector; |
| 15 | 15 | |
| 16 | 16 | use Sylius\Bundle\CoreBundle\Application\Kernel; |
| 17 | -use Sylius\Component\Channel\Context\ChannelNotFoundException; |
|
| 18 | 17 | use Sylius\Component\Core\Context\ShopperContextInterface; |
| 19 | 18 | use Sylius\Component\Core\Model\ChannelInterface; |
| 20 | 19 | use Sylius\Component\Currency\Context\CurrencyNotFoundException; |