@@ -27,6 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param string $value |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setValue($value); |
| 32 | 33 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | 31 | * @param Request $request |
| 32 | - * @return \Symfony\Component\HttpFoundation\RedirectResponse |
|
| 32 | + * @return JsonResponse |
|
| 33 | 33 | */ |
| 34 | 34 | public function updatePositionsAction(Request $request) |
| 35 | 35 | { |
@@ -38,9 +38,9 @@ |
||
| 38 | 38 | $productTaxons = $request->get('productTaxons'); |
| 39 | 39 | |
| 40 | 40 | if (in_array($request->getMethod(), ['POST', 'PUT', 'PATCH']) && null !== $productTaxons) { |
| 41 | - foreach($productTaxons as $productTaxon) { |
|
| 41 | + foreach ($productTaxons as $productTaxon) { |
|
| 42 | 42 | |
| 43 | - if(!is_numeric($productTaxon['position'])) { |
|
| 43 | + if (!is_numeric($productTaxon['position'])) { |
|
| 44 | 44 | throw new HttpException( |
| 45 | 45 | Response::HTTP_NOT_ACCEPTABLE, |
| 46 | 46 | sprintf('The productTaxon position "%s" is invalid.', $productTaxon['position']) |
@@ -44,6 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * @param AddressInterface $address |
| 47 | + * @return void |
|
| 47 | 48 | */ |
| 48 | 49 | public function setShippingAddress(AddressInterface $address); |
| 49 | 50 | |
@@ -54,6 +55,7 @@ discard block |
||
| 54 | 55 | |
| 55 | 56 | /** |
| 56 | 57 | * @param AddressInterface $address |
| 58 | + * @return void |
|
| 57 | 59 | */ |
| 58 | 60 | public function setBillingAddress(AddressInterface $address); |
| 59 | 61 | |
@@ -64,6 +66,7 @@ discard block |
||
| 64 | 66 | |
| 65 | 67 | /** |
| 66 | 68 | * @param string $checkoutState |
| 69 | + * @return void |
|
| 67 | 70 | */ |
| 68 | 71 | public function setCheckoutState($checkoutState); |
| 69 | 72 | |
@@ -74,6 +77,7 @@ discard block |
||
| 74 | 77 | |
| 75 | 78 | /** |
| 76 | 79 | * @param string $paymentState |
| 80 | + * @return void |
|
| 77 | 81 | */ |
| 78 | 82 | public function setPaymentState($paymentState); |
| 79 | 83 | |
@@ -101,14 +105,19 @@ discard block |
||
| 101 | 105 | |
| 102 | 106 | /** |
| 103 | 107 | * @param ShipmentInterface $shipment |
| 108 | + * @return void |
|
| 104 | 109 | */ |
| 105 | 110 | public function addShipment(ShipmentInterface $shipment); |
| 106 | 111 | |
| 107 | 112 | /** |
| 108 | 113 | * @param ShipmentInterface $shipment |
| 114 | + * @return void |
|
| 109 | 115 | */ |
| 110 | 116 | public function removeShipment(ShipmentInterface $shipment); |
| 111 | 117 | |
| 118 | + /** |
|
| 119 | + * @return void |
|
| 120 | + */ |
|
| 112 | 121 | public function removeShipments(); |
| 113 | 122 | |
| 114 | 123 | /** |
@@ -127,6 +136,7 @@ discard block |
||
| 127 | 136 | * @param string |
| 128 | 137 | * |
| 129 | 138 | * @throws \InvalidArgumentException |
| 139 | + * @return void |
|
| 130 | 140 | */ |
| 131 | 141 | public function setCurrencyCode($currencyCode); |
| 132 | 142 | |
@@ -137,6 +147,7 @@ discard block |
||
| 137 | 147 | |
| 138 | 148 | /** |
| 139 | 149 | * @param float $exchangeRate |
| 150 | + * @return void |
|
| 140 | 151 | */ |
| 141 | 152 | public function setExchangeRate($exchangeRate); |
| 142 | 153 | |
@@ -149,11 +160,13 @@ discard block |
||
| 149 | 160 | |
| 150 | 161 | /** |
| 151 | 162 | * @param string |
| 163 | + * @return void |
|
| 152 | 164 | */ |
| 153 | 165 | public function setLocaleCode($localeCode); |
| 154 | 166 | |
| 155 | 167 | /** |
| 156 | 168 | * @param BaseCouponInterface $coupon |
| 169 | + * @return void |
|
| 157 | 170 | */ |
| 158 | 171 | public function setPromotionCoupon(BaseCouponInterface $coupon = null); |
| 159 | 172 | |
@@ -164,6 +177,7 @@ discard block |
||
| 164 | 177 | |
| 165 | 178 | /** |
| 166 | 179 | * @param string $state |
| 180 | + * @return void |
|
| 167 | 181 | */ |
| 168 | 182 | public function setShippingState($state); |
| 169 | 183 | |
@@ -189,6 +203,7 @@ discard block |
||
| 189 | 203 | |
| 190 | 204 | /** |
| 191 | 205 | * @param string $tokenValue |
| 206 | + * @return void |
|
| 192 | 207 | */ |
| 193 | 208 | public function setTokenValue($tokenValue); |
| 194 | 209 | |
@@ -204,6 +219,7 @@ discard block |
||
| 204 | 219 | |
| 205 | 220 | /** |
| 206 | 221 | * @param string $customerIp |
| 222 | + * @return void |
|
| 207 | 223 | */ |
| 208 | 224 | public function setCustomerIp($customerIp); |
| 209 | 225 | } |
@@ -27,6 +27,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -27,6 +27,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | public function transform($productTaxonCollection) |
| 42 | 42 | { |
| 43 | - if(null === $productTaxonCollection) { |
|
| 43 | + if (null === $productTaxonCollection) { |
|
| 44 | 44 | return new ArrayCollection(); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public function reverseTransform($taxonCollection) |
| 64 | 64 | { |
| 65 | - if(null === $taxonCollection) { |
|
| 65 | + if (null === $taxonCollection) { |
|
| 66 | 66 | return new ArrayCollection(); |
| 67 | 67 | } |
| 68 | 68 | |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | $productTaxon->setProduct($product); |
| 73 | 73 | $productTaxon->setTaxon($taxon); |
| 74 | 74 | |
| 75 | - if(null !== $position) { |
|
| 75 | + if (null !== $position) { |
|
| 76 | 76 | $productTaxon->setPosition($position); |
| 77 | 77 | } |
| 78 | 78 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | { |
| 61 | 61 | $productsList = $this->getDocument()->find('css', '#products'); |
| 62 | 62 | |
| 63 | - $products = $productsList->findAll('css','.column > .card'); |
|
| 63 | + $products = $productsList->findAll('css', '.column > .card'); |
|
| 64 | 64 | |
| 65 | 65 | return count($products); |
| 66 | 66 | } |
@@ -103,10 +103,10 @@ discard block |
||
| 103 | 103 | public function hasProductsInOrder(array $productNames) |
| 104 | 104 | { |
| 105 | 105 | $productsList = $this->getDocument()->find('css', '#products'); |
| 106 | - $products = $productsList->findAll('css','.column .content > .sylius-product-name'); |
|
| 106 | + $products = $productsList->findAll('css', '.column .content > .sylius-product-name'); |
|
| 107 | 107 | |
| 108 | 108 | foreach ($productNames as $key => $value) { |
| 109 | - if($products[$key]->getText() !== $value) { |
|
| 109 | + if ($products[$key]->getText() !== $value) { |
|
| 110 | 110 | return false; |
| 111 | 111 | } |
| 112 | 112 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $productsOnPage = $this->getColumnFields('name'); |
| 32 | 32 | |
| 33 | 33 | foreach ($productsOnPage as $key => $product) { |
| 34 | - if($productNames[$key] !== $product) { |
|
| 34 | + if ($productNames[$key] !== $product) { |
|
| 35 | 35 | return false; |
| 36 | 36 | } |
| 37 | 37 | } |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | { |
| 56 | 56 | $this->getElement('save_configuration_button')->press(); |
| 57 | 57 | |
| 58 | - $this->getDocument()->waitFor(5, function (){ |
|
| 58 | + $this->getDocument()->waitFor(5, function () { |
|
| 59 | 59 | return false === $this->getElement('save_configuration_button')->hasClass('loading'); |
| 60 | 60 | } ); |
| 61 | 61 | } |