Completed
Push — unused-compiler-pass ( 93ebf5 )
by Kamil
31:23 queued 11:08
created
src/Sylius/Behat/Page/Admin/Product/CreateSimpleProductPageInterface.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -39,6 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     /**
41 41
      * @param string $email
42
+     * @return void
42 43
      */
43 44
     public function setEmail($email);
44 45
 
@@ -51,6 +52,7 @@  discard block
 block discarded – undo
51 52
 
52 53
     /**
53 54
      * @param string $emailCanonical
55
+     * @return void
54 56
      */
55 57
     public function setEmailCanonical($emailCanonical);
56 58
 
@@ -61,11 +63,13 @@  discard block
 block discarded – undo
61 63
 
62 64
     /**
63 65
      * @param CustomerInterface $customer
66
+     * @return void
64 67
      */
65 68
     public function setCustomer(CustomerInterface $customer = null);
66 69
 
67 70
     /**
68 71
      * @param string $username
72
+     * @return void
69 73
      */
70 74
     public function setUsername($username);
71 75
 
@@ -78,11 +82,13 @@  discard block
 block discarded – undo
78 82
 
79 83
     /**
80 84
      * @param string $usernameCanonical
85
+     * @return void
81 86
      */
82 87
     public function setUsernameCanonical($usernameCanonical);
83 88
 
84 89
     /**
85 90
      * @param bool $locked
91
+     * @return void
86 92
      */
87 93
     public function setLocked($locked);
88 94
 
@@ -93,6 +99,7 @@  discard block
 block discarded – undo
93 99
 
94 100
     /**
95 101
      * @param string $confirmationToken
102
+     * @return void
96 103
      */
97 104
     public function setConfirmationToken($confirmationToken);
98 105
 
@@ -100,6 +107,7 @@  discard block
 block discarded – undo
100 107
      * Sets the timestamp that the user requested a password reset.
101 108
      *
102 109
      * @param null|\DateTime $date
110
+     * @return void
103 111
      */
104 112
     public function setPasswordRequestedAt(\DateTime $date = null);
105 113
 
@@ -114,6 +122,7 @@  discard block
 block discarded – undo
114 122
 
115 123
     /**
116 124
      * @param \DateTime $date
125
+     * @return void
117 126
      */
118 127
     public function setCredentialsExpireAt(\DateTime $date = null);
119 128
 
@@ -124,6 +133,7 @@  discard block
 block discarded – undo
124 133
 
125 134
     /**
126 135
      * @param \DateTime $time
136
+     * @return void
127 137
      */
128 138
     public function setLastLogin(\DateTime $time = null);
129 139
 
@@ -145,16 +155,19 @@  discard block
 block discarded – undo
145 155
      * This overwrites any previous roles.
146 156
      *
147 157
      * @param array $roles
158
+     * @return void
148 159
      */
149 160
     public function setRoles(array $roles);
150 161
 
151 162
     /**
152 163
      * @param string $role
164
+     * @return void
153 165
      */
154 166
     public function addRole($role);
155 167
 
156 168
     /**
157 169
      * @param string $role
170
+     * @return void
158 171
      */
159 172
     public function removeRole($role);
160 173
 
@@ -178,6 +191,7 @@  discard block
 block discarded – undo
178 191
      * Connects OAuth account.
179 192
      *
180 193
      * @param UserOAuthInterface $oauth
194
+     * @return void
181 195
      */
182 196
     public function addOAuthAccount(UserOAuthInterface $oauth);
183 197
 }
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
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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
145 145
         $currencies = $this->loadFixturesFromFile('resources/currencies.yml');
146 146
 
147
-        $this->client->request('GET', '/api/v1/currencies/'.$currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept);
147
+        $this->client->request('GET', '/api/v1/currencies/' . $currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept);
148 148
 
149 149
         $response = $this->client->getResponse();
150 150
         $this->assertResponse($response, 'currency/show_response', Response::HTTP_OK);
@@ -171,12 +171,12 @@  discard block
 block discarded – undo
171 171
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
172 172
         $currencies = $this->loadFixturesFromFile('resources/currencies.yml');
173 173
 
174
-        $this->client->request('DELETE', '/api/v1/currencies/'.$currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithContentType, []);
174
+        $this->client->request('DELETE', '/api/v1/currencies/' . $currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithContentType, []);
175 175
 
176 176
         $response = $this->client->getResponse();
177 177
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
178 178
 
179
-        $this->client->request('GET', '/api/v1/currencies/'.$currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept);
179
+        $this->client->request('GET', '/api/v1/currencies/' . $currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept);
180 180
 
181 181
         $response = $this->client->getResponse();
182 182
         $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND);
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.
src/Sylius/Bundle/CoreBundle/Fixture/Factory/ChannelExampleFactory.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
         $this->channelFactory = $channelFactory;
65 65
         $this->localeRepository = $localeRepository;
66
-        $this->currencyRepository= $currencyRepository;
66
+        $this->currencyRepository = $currencyRepository;
67 67
 
68 68
         $this->faker = \Faker\Factory::create();
69 69
         $this->optionsResolver = new OptionsResolver();
Please login to merge, or discard this patch.