Completed
Push — travis-trusty ( 62da84...e797f4 )
by Kamil
76:02 queued 52:05
created
tests/Controller/CheckoutShippingApiTest.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Tests\Controller;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Component/Mailer/Sender/SenderInterface.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Mailer\Sender;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CustomerBundle/DependencyInjection/Configuration.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Bundle\CustomerBundle\DependencyInjection;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Component/Core/StateResolver/CheckoutStateResolver.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Core\StateResolver;
15 15
 
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Tests\Controller;
15 15
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
         $this->addItemToCart($cartId);
111 111
 
112
-        $this->client->request('PATCH',  '/api/v1/carts/' . $cartId, [], [], static::$authorizedHeaderWithAccept, '{"promotionCoupon": "BANANAS"}');
112
+        $this->client->request('PATCH', '/api/v1/carts/' . $cartId, [], [], static::$authorizedHeaderWithAccept, '{"promotionCoupon": "BANANAS"}');
113 113
 
114 114
         $this->addressOrder($cartId);
115 115
         $this->selectOrderShippingMethod($cartId);
Please login to merge, or discard this patch.
src/Sylius/Bundle/InventoryBundle/Twig/InventoryExtension.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Bundle\InventoryBundle\Twig;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingPaymentMethodsContext.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -224,6 +224,7 @@
 block discarded – undo
224 224
     /**
225 225
      * @Then the payment method :paymentMethodName should appear in the registry
226 226
      * @Then the payment method :paymentMethodName should be in the registry
227
+     * @param string $paymentMethodName
227 228
      */
228 229
     public function thePaymentMethodShouldAppearInTheRegistry($paymentMethodName)
229 230
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Behat\Context\Ui\Admin;
15 15
 
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
     public function iShouldBeNotifiedThatIHaveToSpecifyPaypal($element)
302 302
     {
303 303
         Assert::same(
304
-            $this->createPage->getValidationMessage('paypal_'.$element),
304
+            $this->createPage->getValidationMessage('paypal_' . $element),
305 305
             sprintf('Please enter paypal %s.', $element)
306 306
         );
307 307
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/PaymentMethod/CreatePageInterface.php 2 patches
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -18,59 +18,76 @@
 block discarded – undo
18 18
  */
19 19
 interface CreatePageInterface extends BaseCreatePageInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function enable();
25
+
26
+    /**
27
+     * @return void
28
+     */
22 29
     public function disable();
23 30
 
24 31
     /**
25 32
      * @param string $name
26 33
      * @param string $languageCode
34
+     * @return void
27 35
      */
28 36
     public function nameIt($name, $languageCode);
29 37
 
30 38
     /**
31 39
      * @param string $code
40
+     * @return void
32 41
      */
33 42
     public function specifyCode($code);
34 43
 
35 44
     /**
36 45
      * @param string $channelName
46
+     * @return void
37 47
      */
38 48
     public function checkChannel($channelName);
39 49
 
40 50
     /**
41 51
      * @param string $description
42 52
      * @param string $languageCode
53
+     * @return void
43 54
      */
44 55
     public function describeIt($description, $languageCode);
45 56
 
46 57
     /**
47 58
      * @param string $instructions
48 59
      * @param string $languageCode
60
+     * @return void
49 61
      */
50 62
     public function setInstructions($instructions, $languageCode);
51 63
 
52 64
     /**
53 65
      * @param string $username
66
+     * @return void
54 67
      */
55 68
     public function setPaypalGatewayUsername($username);
56 69
 
57 70
     /**
58 71
      * @param string $password
72
+     * @return void
59 73
      */
60 74
     public function setPaypalGatewayPassword($password);
61 75
 
62 76
     /**
63 77
      * @param string $signature
78
+     * @return void
64 79
      */
65 80
     public function setPaypalGatewaySignature($signature);
66 81
 
67 82
     /**
68 83
      * @param string $secretKey
84
+     * @return void
69 85
      */
70 86
     public function setStripeSecretKey($secretKey);
71 87
 
72 88
     /**
73 89
      * @param string $publishableKey
90
+     * @return void
74 91
      */
75 92
     public function setStripePublishableKey($publishableKey);
76 93
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Behat\Page\Admin\PaymentMethod;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/PaymentMethod/UpdatePageInterface.php 2 patches
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -18,27 +18,38 @@
 block discarded – undo
18 18
  */
19 19
 interface UpdatePageInterface extends BaseUpdatePageInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function enable();
25
+
26
+    /**
27
+     * @return void
28
+     */
22 29
     public function disable();
23 30
 
24 31
     /**
25 32
      * @param string $name
26 33
      * @param string $languageCode
34
+     * @return void
27 35
      */
28 36
     public function nameIt($name, $languageCode);
29 37
 
30 38
     /**
31 39
      * @param string $username
40
+     * @return void
32 41
      */
33 42
     public function setPaypalGatewayUsername($username);
34 43
 
35 44
     /**
36 45
      * @param string $password
46
+     * @return void
37 47
      */
38 48
     public function setPaypalGatewayPassword($password);
39 49
 
40 50
     /**
41 51
      * @param string $signature
52
+     * @return void
42 53
      */
43 54
     public function setPaypalGatewaySignature($signature);
44 55
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Behat\Page\Admin\PaymentMethod;
15 15
 
Please login to merge, or discard this patch.