@@ -318,7 +318,7 @@ |
||
318 | 318 | return $product->getVariants()[0]; |
319 | 319 | } |
320 | 320 | |
321 | - if ($product->hasOptions()){ |
|
321 | + if ($product->hasOptions()) { |
|
322 | 322 | return $this->getVariant($request->request->get('options'), $product); |
323 | 323 | } |
324 | 324 |
@@ -23,7 +23,6 @@ |
||
23 | 23 | use Sylius\Component\Order\Repository\OrderItemRepositoryInterface; |
24 | 24 | use Sylius\Component\Registry\ServiceRegistryInterface; |
25 | 25 | use Sylius\Component\Resource\Factory\FactoryInterface; |
26 | -use Sylius\ShopApiPlugin\Factory\ImageViewFactoryInterface; |
|
27 | 26 | use Sylius\Component\Shipping\Exception\UnresolvedDefaultShippingMethodException; |
28 | 27 | use Sylius\Component\Shipping\Resolver\ShippingMethodsResolverInterface; |
29 | 28 | use Sylius\ShopApiPlugin\Factory\PriceViewFactoryInterface; |
@@ -4,10 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use FOS\RestBundle\View\View; |
6 | 6 | use FOS\RestBundle\View\ViewHandlerInterface; |
7 | -use Sylius\Component\Core\Model\ImageInterface; |
|
8 | 7 | use Sylius\Component\Core\Model\TaxonInterface; |
9 | 8 | use Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface; |
10 | -use Sylius\ShopApiPlugin\Factory\ImageViewFactoryInterface; |
|
11 | 9 | use Sylius\ShopApiPlugin\Factory\TaxonViewFactoryInterface; |
12 | 10 | use Sylius\ShopApiPlugin\View\TaxonView; |
13 | 11 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |