Completed
Push — master ( daa3fb...747147 )
by Kamil
20:56
created
src/Sylius/Bundle/CoreBundle/Checkout/CheckoutRedirectListener.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -11,11 +11,8 @@
 block discarded – undo
11 11
 
12 12
 namespace Sylius\Bundle\CoreBundle\Checkout;
13 13
 
14
-use Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface;
15
-use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration;
16 14
 use Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent;
17 15
 use Sylius\Component\Core\Model\OrderInterface;
18
-use Sylius\Component\Resource\Model\ResourceInterface;
19 16
 use Symfony\Component\HttpFoundation\RedirectResponse;
20 17
 use Symfony\Component\HttpFoundation\RequestMatcherInterface;
21 18
 use Symfony\Component\HttpFoundation\RequestStack;
Please login to merge, or discard this patch.
CoreBundle/Validator/Constraints/OrderProductEligibilityValidator.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -23,9 +23,6 @@
 block discarded – undo
23 23
 final class OrderProductEligibilityValidator extends ConstraintValidator
24 24
 {
25 25
     /**
26
-     * @param OrderInterface $value
27
-     *
28
-     * {@inheritdoc}
29 26
      */
30 27
     public function validate($order, Constraint $constraint)
31 28
     {
Please login to merge, or discard this patch.
Validator/Constraints/OrderShippingMethodEligibilityValidator.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -36,9 +36,6 @@
 block discarded – undo
36 36
     }
37 37
 
38 38
     /**
39
-     * @param OrderInterface $value
40
-     *
41
-     * {@inheritdoc}
42 39
      */
43 40
     public function validate($order, Constraint $constraint)
44 41
     {
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ProductVariantInterface.php 2 patches
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -35,6 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     /**
37 37
      * @param float $weight
38
+     * @return void
38 39
      */
39 40
     public function setWeight($weight);
40 41
 
@@ -45,6 +46,7 @@  discard block
 block discarded – undo
45 46
 
46 47
     /**
47 48
      * @param float $width
49
+     * @return void
48 50
      */
49 51
     public function setWidth($width);
50 52
 
@@ -55,6 +57,7 @@  discard block
 block discarded – undo
55 57
 
56 58
     /**
57 59
      * @param float $height
60
+     * @return void
58 61
      */
59 62
     public function setHeight($height);
60 63
 
@@ -65,16 +68,19 @@  discard block
 block discarded – undo
65 68
 
66 69
     /**
67 70
      * @param float $depth
71
+     * @return void
68 72
      */
69 73
     public function setDepth($depth);
70 74
 
71 75
     /**
72 76
      * @param TaxCategoryInterface $category
77
+     * @return void
73 78
      */
74 79
     public function setTaxCategory(TaxCategoryInterface $category = null);
75 80
 
76 81
     /**
77 82
      * @param ShippingCategoryInterface $shippingCategory
83
+     * @return void
78 84
      */
79 85
     public function setShippingCategory(ShippingCategoryInterface $shippingCategory);
80 86
 
@@ -106,11 +112,13 @@  discard block
 block discarded – undo
106 112
 
107 113
     /**
108 114
      * @param ChannelPricingInterface $channelPricing
115
+     * @return void
109 116
      */
110 117
     public function addChannelPricing(ChannelPricingInterface $channelPricing);
111 118
 
112 119
     /**
113 120
      * @param ChannelPricingInterface $channelPricing
121
+     * @return void
114 122
      */
115 123
     public function removeChannelPricing(ChannelPricingInterface $channelPricing);
116 124
 
@@ -121,6 +129,7 @@  discard block
 block discarded – undo
121 129
 
122 130
     /**
123 131
      * @param bool $shippingRequired
132
+     * @return void
124 133
      */
125 134
     public function setShippingRequired($shippingRequired);
126 135
 }
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
 use Sylius\Component\Resource\Model\VersionedInterface;
18 18
 use Sylius\Component\Shipping\Model\ShippableInterface;
19 19
 use Sylius\Component\Shipping\Model\ShippingCategoryInterface;
20
-use Sylius\Component\Taxation\Model\TaxableInterface;
21 20
 use Sylius\Component\Taxation\Model\TaxCategoryInterface;
21
+use Sylius\Component\Taxation\Model\TaxableInterface;
22 22
 
23 23
 /**
24 24
  * @author Paweł Jędrzejewski <[email protected]>
Please login to merge, or discard this patch.
src/Sylius/Bundle/OrderBundle/Remover/ExpiredCartsRemover.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
     public function remove()
65 65
     {
66
-        $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-'.$this->expirationPeriod));
66
+        $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-' . $this->expirationPeriod));
67 67
 
68 68
         $this->eventDispatcher->dispatch(SyliusExpiredCartsEvents::PRE_REMOVE, new GenericEvent($expiredCarts));
69 69
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Type/User/AdminUserType.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@
 block discarded – undo
30 30
 
31 31
         $builder
32 32
             ->add('firstName', TextType::class, [
33
-            	'label' => 'sylius.form.user.first_name',
33
+                'label' => 'sylius.form.user.first_name',
34 34
             ])
35 35
             ->add('lastName', TextType::class, [
36
-            	'label' => 'sylius.form.user.last_name',
36
+                'label' => 'sylius.form.user.last_name',
37 37
             ])
38 38
             ->add('localeCode', LocaleType::class, [
39 39
                 'label' => 'sylius.ui.locale',
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/CompletePage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -305,7 +305,7 @@
 block discarded – undo
305 305
             do {
306 306
                 parent::tryToOpen($urlParameters);
307 307
                 sleep(3);
308
-            } while(!$this->isOpen() && microtime(true) < $end);
308
+            } while (!$this->isOpen() && microtime(true) < $end);
309 309
 
310 310
             return;
311 311
         }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ShopBundle/DependencyInjection/SyliusShopExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     public function load(array $config, ContainerBuilder $container)
34 34
     {
35 35
         $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
36
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
36
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
37 37
 
38 38
         $loader->load('services.xml');
39 39
         $loader->load(sprintf('services/integrations/locale/%s.xml', $config['locale_switcher']));
Please login to merge, or discard this patch.
tests/Controller/CheckoutPaymentApiTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $this->addItemToCart($cartId);
58 58
         $this->addressOrder($cartId);
59 59
 
60
-        $this->client->request('PATCH',  $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType);
60
+        $this->client->request('PATCH', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType);
61 61
 
62 62
         $response = $this->client->getResponse();
63 63
         $this->assertResponse($response, 'checkout/payment_invalid_order_state', Response::HTTP_INTERNAL_SERVER_ERROR);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         }
88 88
 EOT;
89 89
 
90
-        $this->client->request('PUT',  $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
90
+        $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
91 91
 
92 92
         $response = $this->client->getResponse();
93 93
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                 }
86 86
             ]
87 87
         }
88
-EOT;
88
+eot;
89 89
 
90 90
         $this->client->request('PUT',  $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
91 91
 
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
                 }
176 176
             ]
177 177
         }
178
-EOT;
178
+eot;
179 179
 
180 180
         $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
181 181
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
                 }
217 217
             ]
218 218
         }
219
-EOT;
219
+eot;
220 220
 
221 221
         $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
222 222
 
Please login to merge, or discard this patch.