Completed
Pull Request — master (#64)
by Łukasz
06:31
created
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/TaxonController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,10 +4,8 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Controller/CheckoutController.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,7 @@
 block discarded – undo
35 35
             Address::createFromArray($request->request->get('shippingAddress')),
36 36
             Address::createFromArray(
37 37
                 $request->request->has('billingAddress') ?
38
-                    $request->request->get('billingAddress') :
39
-                    $request->request->get('shippingAddress')
38
+                    $request->request->get('billingAddress') : $request->request->get('shippingAddress')
40 39
             )
41 40
         );
42 41
 
Please login to merge, or discard this patch.