Completed
Push — upgrade-boilerplate ( 903b21 )
by Kamil
17:46
created
src/Sylius/Behat/Page/Admin/ShippingMethod/CreatePage.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,6 @@
 block discarded – undo
13 13
 
14 14
 use Behat\Mink\Driver\Selenium2Driver;
15 15
 use Behat\Mink\Exception\ElementNotFoundException;
16
-use Sylius\Behat\Behaviour\ChoosesCalculator;
17
-use Sylius\Behat\Behaviour\SpecifiesItsAmount;
18 16
 use Sylius\Behat\Behaviour\SpecifiesItsCode;
19 17
 use Sylius\Behat\Page\Admin\Crud\CreatePage as BaseCreatePage;
20 18
 use Sylius\Component\Core\Formatter\StringInflector;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Account/Order/IndexPageInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,5 +18,8 @@
 block discarded – undo
18 18
  */
19 19
 interface PasswordUpdaterInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function updatePassword(CredentialsHolderInterface $user);
22 25
 }
Please login to merge, or discard this patch.
Bundle/PayumBundle/Action/Paypal/ExpressCheckout/ConvertPaymentAction.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,6 @@
 block discarded – undo
103 103
 
104 104
     /**
105 105
      * @param int $price
106
-     * @param string $currencyCode
107 106
      *
108 107
      * @return float
109 108
      */
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -57,33 +57,33 @@
 block discarded – undo
57 57
 
58 58
         $m = 0;
59 59
         foreach ($order->getItems() as $item) {
60
-            $details['L_PAYMENTREQUEST_0_NAME'.$m] = $item->getVariant()->getProduct()->getName();
61
-            $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($item->getDiscountedUnitPrice());
62
-            $details['L_PAYMENTREQUEST_0_QTY'.$m] = $item->getQuantity();
60
+            $details['L_PAYMENTREQUEST_0_NAME' . $m] = $item->getVariant()->getProduct()->getName();
61
+            $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($item->getDiscountedUnitPrice());
62
+            $details['L_PAYMENTREQUEST_0_QTY' . $m] = $item->getQuantity();
63 63
 
64 64
             ++$m;
65 65
         }
66 66
 
67 67
         if (0 !== $taxTotal = $order->getAdjustmentsTotalRecursively(AdjustmentInterface::TAX_ADJUSTMENT)) {
68
-            $details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Tax Total';
69
-            $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($taxTotal);
70
-            $details['L_PAYMENTREQUEST_0_QTY'.$m] = 1;
68
+            $details['L_PAYMENTREQUEST_0_NAME' . $m] = 'Tax Total';
69
+            $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($taxTotal);
70
+            $details['L_PAYMENTREQUEST_0_QTY' . $m] = 1;
71 71
 
72 72
             ++$m;
73 73
         }
74 74
 
75 75
         if (0 !== $promotionTotal = $order->getOrderPromotionTotal()) {
76
-            $details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Discount';
77
-            $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($promotionTotal);
78
-            $details['L_PAYMENTREQUEST_0_QTY'.$m] = 1;
76
+            $details['L_PAYMENTREQUEST_0_NAME' . $m] = 'Discount';
77
+            $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($promotionTotal);
78
+            $details['L_PAYMENTREQUEST_0_QTY' . $m] = 1;
79 79
 
80 80
             ++$m;
81 81
         }
82 82
 
83 83
         if (0 !== $shippingTotal = $order->getShippingTotal()) {
84
-            $details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Shipping Total';
85
-            $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($shippingTotal);
86
-            $details['L_PAYMENTREQUEST_0_QTY'.$m] = 1;
84
+            $details['L_PAYMENTREQUEST_0_NAME' . $m] = 'Shipping Total';
85
+            $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($shippingTotal);
86
+            $details['L_PAYMENTREQUEST_0_QTY' . $m] = 1;
87 87
         }
88 88
 
89 89
         $request->setResult($details);
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ChannelPricingInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param OptionInterface $option
30
+     * @return void
30 31
      */
31 32
     public function setOption(OptionInterface $option = null);
32 33
 
@@ -41,6 +42,7 @@  discard block
 block discarded – undo
41 42
      * Set internal value.
42 43
      *
43 44
      * @param string $value
45
+     * @return void
44 46
      */
45 47
     public function setValue($value);
46 48
 
Please login to merge, or discard this patch.
Component/Core/Promotion/Action/FixedDiscountPromotionActionCommand.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Sylius\Bundle\PromotionBundle\Form\Type\Action\FixedDiscountConfigurationType;
15 15
 use Sylius\Component\Core\Distributor\ProportionalIntegerDistributorInterface;
16 16
 use Sylius\Component\Core\Promotion\Applicator\UnitsPromotionAdjustmentsApplicatorInterface;
17
-use Sylius\Component\Currency\Converter\CurrencyConverterInterface;
18 17
 use Sylius\Component\Promotion\Model\PromotionInterface;
19 18
 use Sylius\Component\Promotion\Model\PromotionSubjectInterface;
20 19
 use Webmozart\Assert\Assert;
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Shipping/Calculator/FlatRateCalculator.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
 use Sylius\Component\Core\Model\ShipmentInterface;
15 15
 use Sylius\Component\Shipping\Calculator\CalculatorInterface;
16
-use Sylius\Component\Shipping\Model\ShipmentInterface  as BaseShipmentInterface;
16
+use Sylius\Component\Shipping\Model\ShipmentInterface as BaseShipmentInterface;
17 17
 use Webmozart\Assert\Assert;
18 18
 
19 19
 /**
Please login to merge, or discard this patch.
tests/Controller/CurrencyApiTest.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
121 121
         $currencies = $this->loadFixturesFromFile('resources/currencies.yml');
122 122
 
123
-        $this->client->request('GET', '/api/currencies/'.$currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept);
123
+        $this->client->request('GET', '/api/currencies/' . $currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept);
124 124
 
125 125
         $response = $this->client->getResponse();
126 126
         $this->assertResponse($response, 'currency/show_response', Response::HTTP_OK);
@@ -141,12 +141,12 @@  discard block
 block discarded – undo
141 141
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
142 142
         $currencies = $this->loadFixturesFromFile('resources/currencies.yml');
143 143
 
144
-        $this->client->request('DELETE', '/api/currencies/'.$currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithContentType, []);
144
+        $this->client->request('DELETE', '/api/currencies/' . $currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithContentType, []);
145 145
 
146 146
         $response = $this->client->getResponse();
147 147
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
148 148
 
149
-        $this->client->request('GET', '/api/currencies/'.$currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept);
149
+        $this->client->request('GET', '/api/currencies/' . $currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept);
150 150
 
151 151
         $response = $this->client->getResponse();
152 152
         $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,6 +91,6 @@
 block discarded – undo
91 91
 
92 92
   <info>php %command.full_name% web --symlink --relative</info>
93 93
 
94
-EOT;
94
+eot;
95 95
     }
96 96
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Shop/RegistrationContext.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,15 +16,15 @@
 block discarded – undo
16 16
 use Sylius\Behat\Page\Shop\Account\DashboardPageInterface;
17 17
 use Sylius\Behat\Page\Shop\Account\LoginPageInterface;
18 18
 use Sylius\Behat\Page\Shop\Account\ProfileUpdatePageInterface;
19
-use Sylius\Behat\Page\Shop\Account\VerificationPageInterface;
20 19
 use Sylius\Behat\Page\Shop\Account\RegisterPageInterface;
20
+use Sylius\Behat\Page\Shop\Account\VerificationPageInterface;
21 21
 use Sylius\Behat\Page\Shop\HomePageInterface;
22 22
 use Sylius\Behat\Service\NotificationCheckerInterface;
23 23
 use Sylius\Behat\Service\Resolver\CurrentPageResolverInterface;
24
-use Sylius\Behat\Service\SharedStorageInterface;
25 24
 use Sylius\Behat\Service\SecurityServiceInterface;
26
-use Sylius\Component\Core\Model\ShopUserInterface;
25
+use Sylius\Behat\Service\SharedStorageInterface;
27 26
 use Sylius\Component\Core\Model\CustomerInterface;
27
+use Sylius\Component\Core\Model\ShopUserInterface;
28 28
 use Webmozart\Assert\Assert;
29 29
 
30 30
 /**
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/Factory/AdminUserExampleFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
                 return $this->faker->email;
97 97
             })
98 98
             ->setDefault('username', function (Options $options) {
99
-                return $this->faker->firstName.' '.$this->faker->lastName;
99
+                return $this->faker->firstName . ' ' . $this->faker->lastName;
100 100
             })
101 101
             ->setDefault('enabled', true)
102 102
             ->setAllowedTypes('enabled', 'bool')
Please login to merge, or discard this patch.