@@ -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 | } |
@@ -55,7 +55,7 @@ |
||
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 | } |
@@ -158,7 +158,7 @@ |
||
158 | 158 | public function filterProductTaxonsByTaxon(TaxonInterface $taxon) |
159 | 159 | { |
160 | 160 | return $this->productTaxons->filter(function ($productTaxon) use ($taxon) { |
161 | - return $taxon === $productTaxon->getTaxon(); |
|
161 | + return $taxon === $productTaxon->getTaxon(); |
|
162 | 162 | }); |
163 | 163 | } |
164 | 164 |
@@ -174,6 +174,8 @@ discard block |
||
174 | 174 | } |
175 | 175 | |
176 | 176 | /** |
177 | + * @param string $code |
|
178 | + * @param string $name |
|
177 | 179 | * @return ChannelInterface |
178 | 180 | */ |
179 | 181 | private function createChannel($code, $name) |
@@ -197,6 +199,7 @@ discard block |
||
197 | 199 | } |
198 | 200 | |
199 | 201 | /** |
202 | + * @param string $currencyCode |
|
200 | 203 | * @return CurrencyInterface |
201 | 204 | */ |
202 | 205 | private function provideCurrency($currencyCode = null) |