Completed
Push — travis-trusty ( dc96d8...990048 )
by Kamil
18:15
created
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.
tests/Controller/CheckoutShippingApiTest.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
                 }
150 150
             ]
151 151
         }
152
-EOT;
152
+eot;
153 153
 
154 154
         $this->client->request('PUT', $this->getSelectShippingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
155 155
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
                 }
184 184
             ]
185 185
         }
186
-EOT;
186
+eot;
187 187
 
188 188
         $this->client->request('PUT', $this->getSelectShippingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
189 189
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
                 }
224 224
             ]
225 225
         }
226
-EOT;
226
+eot;
227 227
 
228 228
         $this->client->request('PUT', $this->getSelectShippingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
229 229
 
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
                 }
260 260
             ]
261 261
         }
262
-EOT;
262
+eot;
263 263
 
264 264
         $this->client->request('PUT', $this->getSelectShippingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
265 265
 
Please login to merge, or discard this patch.
src/Sylius/Component/Mailer/Sender/SenderInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -21,6 +21,7 @@
 block discarded – undo
21 21
      * @param array $recipients
22 22
      * @param array $data
23 23
      * @param array $attachments
24
+     * @return void
24 25
      */
25 26
     public function send($code, array $recipients, array $data = [], array $attachments = []);
26 27
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CustomerBundle/DependencyInjection/Configuration.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,14 +12,14 @@
 block discarded – undo
12 12
 namespace Sylius\Bundle\CustomerBundle\DependencyInjection;
13 13
 
14 14
 use Sylius\Bundle\CustomerBundle\Form\Type\CustomerGroupType;
15
+use Sylius\Bundle\CustomerBundle\Form\Type\CustomerType;
15 16
 use Sylius\Bundle\ResourceBundle\Controller\ResourceController;
16 17
 use Sylius\Bundle\ResourceBundle\SyliusResourceBundle;
17
-use Sylius\Bundle\CustomerBundle\Form\Type\CustomerType;
18
-use Sylius\Component\Customer\Model\CustomerGroup;
19
-use Sylius\Component\Resource\Factory\Factory;
20 18
 use Sylius\Component\Customer\Model\Customer;
21
-use Sylius\Component\Customer\Model\CustomerInterface;
19
+use Sylius\Component\Customer\Model\CustomerGroup;
22 20
 use Sylius\Component\Customer\Model\CustomerGroupInterface;
21
+use Sylius\Component\Customer\Model\CustomerInterface;
22
+use Sylius\Component\Resource\Factory\Factory;
23 23
 use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
24 24
 use Symfony\Component\Config\Definition\Builder\TreeBuilder;
25 25
 use Symfony\Component\Config\Definition\ConfigurationInterface;
Please login to merge, or discard this patch.
src/Sylius/Component/Core/StateResolver/CheckoutStateResolver.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -14,12 +14,9 @@
 block discarded – undo
14 14
 use SM\Factory\FactoryInterface;
15 15
 use Sylius\Component\Core\Checker\OrderPaymentMethodSelectionRequirementCheckerInterface;
16 16
 use Sylius\Component\Core\Checker\OrderShippingMethodSelectionRequirementCheckerInterface;
17
-use Sylius\Component\Core\Model\OrderItemInterface;
18
-use Sylius\Component\Core\Model\ShipmentInterface;
19 17
 use Sylius\Component\Core\OrderCheckoutTransitions;
20 18
 use Sylius\Component\Order\Model\OrderInterface;
21 19
 use Sylius\Component\Order\StateResolver\StateResolverInterface;
22
-use Sylius\Component\Shipping\Resolver\ShippingMethodsResolverInterface;
23 20
 
24 21
 /**
25 22
  * @author Anna Walasek <[email protected]>
Please login to merge, or discard this patch.
tests/Controller/OrderApiTest.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
         {
206 206
             "tracking": "BANANAS"
207 207
         }
208
-EOT;
208
+eot;
209 209
 
210 210
         $this->client->request('PUT', $this->getShipOrderShipmentUrl($orderId, $rawResponse['shipments'][0]['id']), [], [], static::$authorizedHeaderWithContentType, $data);
211 211
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
 
108 108
         $this->addItemToCart($cartId);
109 109
 
110
-        $this->client->request('PATCH',  '/api/v1/carts/' . $cartId, [], [], static::$authorizedHeaderWithAccept, '{"promotionCoupon": "BANANAS"}');
110
+        $this->client->request('PATCH', '/api/v1/carts/' . $cartId, [], [], static::$authorizedHeaderWithAccept, '{"promotionCoupon": "BANANAS"}');
111 111
 
112 112
         $this->addressOrder($cartId);
113 113
         $this->selectOrderShippingMethod($cartId);
Please login to merge, or discard this patch.
src/Sylius/Bundle/UiBundle/Twig/PercentageExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
35 35
     {
36 36
         $percentage = $number * 100;
37 37
 
38
-        return $percentage.' %';
38
+        return $percentage . ' %';
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/InventoryBundle/Twig/InventoryExtension.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@
 block discarded – undo
37 37
     public function getFunctions()
38 38
     {
39 39
         return [
40
-             new \Twig_SimpleFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']),
41
-             new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']),
40
+                new \Twig_SimpleFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']),
41
+                new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']),
42 42
         ];
43 43
     }
44 44
 }
Please login to merge, or discard this patch.