@@ -56,7 +56,7 @@ |
||
56 | 56 | */ |
57 | 57 | foreach ($this->channelRepository->findAll() as $channel) { |
58 | 58 | foreach ($this->currencyRepository->findAll() as $currency) { |
59 | - $builder->add($channel->getCode().$options['delimiter'].$currency->getCode(), 'sylius_money', [ |
|
59 | + $builder->add($channel->getCode() . $options['delimiter'] . $currency->getCode(), 'sylius_money', [ |
|
60 | 60 | 'label' => sprintf('%s %s', $channel->getName(), $currency->getCode()) |
61 | 61 | ]); |
62 | 62 | } |
@@ -117,7 +117,7 @@ |
||
117 | 117 | $view->vars['prototypes'] = []; |
118 | 118 | foreach ($form->getConfig()->getAttribute('prototypes') as $group => $prototypes) { |
119 | 119 | foreach ($prototypes as $type => $prototype) { |
120 | - $view->vars['prototypes'][$group.'_'.$type] = $prototype->createView($view); |
|
120 | + $view->vars['prototypes'][$group . '_' . $type] = $prototype->createView($view); |
|
121 | 121 | } |
122 | 122 | } |
123 | 123 | } |
@@ -112,7 +112,7 @@ |
||
112 | 112 | $order->getShippingTotal()->willReturn(10); |
113 | 113 | $order->getShipments()->willReturn(new ArrayCollection([])); |
114 | 114 | |
115 | - $this->shouldThrow(\LogicException::class)->during('apply', [$order, $zone]);; |
|
115 | + $this->shouldThrow(\LogicException::class)->during('apply', [$order, $zone]); ; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | function it_does_nothing_if_tax_rate_cannot_be_resolved( |
@@ -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']) |
@@ -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 | } |