Completed
Pull Request — master (#189)
by Kamil
02:55
created
src/Controller/Checkout/ShowAvailablePaymentMethodsAction.php 1 patch
Unused Use Statements   -8 removed lines patch added patch discarded remove patch
@@ -4,20 +4,12 @@
 block discarded – undo
4 4
 
5 5
 use FOS\RestBundle\View\View;
6 6
 use FOS\RestBundle\View\ViewHandlerInterface;
7
-use Sylius\Component\Core\Factory\PaymentMethodFactoryInterface;
8 7
 use Sylius\Component\Core\Model\OrderInterface;
9 8
 use Sylius\Component\Core\Model\PaymentInterface;
10 9
 use Sylius\Component\Core\Model\PaymentMethodInterface;
11
-use Sylius\Component\Core\Model\ShipmentInterface;
12
-use Sylius\Component\Core\Model\ShippingMethodInterface;
13 10
 use Sylius\Component\Core\Repository\OrderRepositoryInterface;
14 11
 use Sylius\Component\Payment\Resolver\PaymentMethodsResolverInterface;
15
-use Sylius\Component\Registry\ServiceRegistryInterface;
16
-use Sylius\Component\Shipping\Calculator\CalculatorInterface;
17
-use Sylius\Component\Shipping\Resolver\ShippingMethodsResolverInterface;
18 12
 use Sylius\ShopApiPlugin\Factory\PaymentMethodViewFactoryInterface;
19
-use Sylius\ShopApiPlugin\View\PaymentMethodView;
20
-use Sylius\ShopApiPlugin\View\ShipmentMethodView;
21 13
 use Symfony\Component\HttpFoundation\Request;
22 14
 use Symfony\Component\HttpFoundation\Response;
23 15
 
Please login to merge, or discard this patch.
src/Validator/ValidPromotionCouponCodeValidator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,7 @@
 block discarded – undo
70 70
         /** @var PromotionCouponInterface $coupon */
71 71
         $coupon = $this->promotionCouponRepository->findOneBy(['code' => $command->couponCode()]);
72 72
 
73
-        if (null === $coupon || !$this->couponEligibilityChecker->isEligible($cart, $coupon))
74
-        {
73
+        if (null === $coupon || !$this->couponEligibilityChecker->isEligible($cart, $coupon)) {
75 74
             $this->buildViolation($constraint);
76 75
 
77 76
             return;
Please login to merge, or discard this patch.
src/Controller/Cart/PutItemToCartAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Sylius\ShopApiPlugin\Controller\Cart;
6 6
 
Please login to merge, or discard this patch.
src/Controller/Cart/PickupAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Sylius\ShopApiPlugin\Controller\Cart;
6 6
 
Please login to merge, or discard this patch.
src/Controller/Cart/AddCouponAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Sylius\ShopApiPlugin\Controller\Cart;
6 6
 
Please login to merge, or discard this patch.
src/Factory/ProductViewFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Sylius\ShopApiPlugin\Factory;
6 6
 
Please login to merge, or discard this patch.
src/Factory/DetailedProductViewFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Sylius\ShopApiPlugin\Factory;
6 6
 
Please login to merge, or discard this patch.
src/Factory/ProductViewFactoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Sylius\ShopApiPlugin\Factory;
6 6
 
Please login to merge, or discard this patch.
src/EventListener/UserRegistrationListener.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,8 @@
 block discarded – undo
24 24
     /**
25 25
      * @param CommandBus $bus
26 26
      */
27
-    public function __construct(CommandBus $bus) {
27
+    public function __construct(CommandBus $bus)
28
+    {
28 29
         $this->bus = $bus;
29 30
     }
30 31
 
Please login to merge, or discard this patch.