Completed
Pull Request — master (#72)
by Łukasz
03:01
created
src/Controller/ProductController.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -4,12 +4,10 @@  discard block
 block discarded – undo
4 4
 
5 5
 use FOS\RestBundle\View\View;
6 6
 use FOS\RestBundle\View\ViewHandlerInterface;
7
-use Liip\ImagineBundle\Imagine\Cache\CacheManager;
8 7
 use Pagerfanta\Adapter\DoctrineORMAdapter;
9 8
 use Pagerfanta\Pagerfanta;
10 9
 use Sylius\Component\Channel\Repository\ChannelRepositoryInterface;
11 10
 use Sylius\Component\Core\Model\ChannelInterface;
12
-use Sylius\Component\Core\Model\ProductImage;
13 11
 use Sylius\Component\Core\Model\ProductImageInterface;
14 12
 use Sylius\Component\Core\Model\ProductInterface;
15 13
 use Sylius\Component\Core\Model\ProductVariantInterface;
@@ -17,7 +15,6 @@  discard block
 block discarded – undo
17 15
 use Sylius\Component\Core\Repository\ProductRepositoryInterface;
18 16
 use Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface;
19 17
 use Sylius\ShopApiPlugin\Builder\ImageViewBuilderInterface;
20
-use Sylius\ShopApiPlugin\View\ImageView;
21 18
 use Sylius\ShopApiPlugin\View\PageLinksView;
22 19
 use Sylius\ShopApiPlugin\View\PageView;
23 20
 use Sylius\ShopApiPlugin\View\ProductVariantView;
Please login to merge, or discard this patch.
src/Controller/CartController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -318,7 +318,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Controller/CheckoutController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
         /** @var ServiceRegistryInterface $calculators */
138 138
         $calculators = $this->get('sylius.registry.shipping_calculator');
139 139
 
140
-        $shippingMethods =  $shippingMethodsResolver->getSupportedMethods($shipment);
140
+        $shippingMethods = $shippingMethodsResolver->getSupportedMethods($shipment);
141 141
 
142 142
         $rawShippingMethods = [];
143 143
 
Please login to merge, or discard this patch.