@@ -102,7 +102,7 @@ |
||
102 | 102 | |
103 | 103 | public static function findBy(RepositoryInterface $repository, string $field, array $criteria = []): \Closure |
104 | 104 | { |
105 | - return function (Options $options, ?array $previousValues) use ($repository, $field, $criteria): ?iterable { |
|
105 | + return function (Options $options, ?array $previousValues) use ($repository, $field, $criteria) : ?iterable { |
|
106 | 106 | if (null === $previousValues || [] === $previousValues) { |
107 | 107 | return $previousValues; |
108 | 108 | } |
@@ -166,7 +166,7 @@ |
||
166 | 166 | |
167 | 167 | private static function getCouponNormalizer(?FactoryInterface $couponFactory): \Closure |
168 | 168 | { |
169 | - return function (Options $options, array $couponDefinitions) use ($couponFactory): array { |
|
169 | + return function (Options $options, array $couponDefinitions) use ($couponFactory) : array { |
|
170 | 170 | if (null === $couponFactory) { |
171 | 171 | throw new \RuntimeException('You must configure a $couponFactory'); |
172 | 172 | } |
@@ -106,7 +106,7 @@ |
||
106 | 106 | |
107 | 107 | try { |
108 | 108 | return Languages::getName($language, $region); |
109 | - } catch(MissingResourceException $exception) { |
|
109 | + } catch (MissingResourceException $exception) { |
|
110 | 110 | return null; |
111 | 111 | } |
112 | 112 | } |
@@ -93,7 +93,7 @@ |
||
93 | 93 | { |
94 | 94 | try { |
95 | 95 | return Currencies::getName($code); |
96 | - } catch(MissingResourceException $exception) { |
|
96 | + } catch (MissingResourceException $exception) { |
|
97 | 97 | return null; |
98 | 98 | } |
99 | 99 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | $this->assertInstanceOf(SalesSummary::class, $salesSummary); |
97 | 97 | $this->assertSame($expectedPeriods, $salesSummary->getIntervals()); |
98 | 98 | $this->assertSame( |
99 | - ['70.00', '40.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00'], |
|
99 | + ['70.00', '40.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00'], |
|
100 | 100 | $salesSummary->getSales() |
101 | 101 | ); |
102 | 102 | } |
@@ -114,8 +114,8 @@ discard block |
||
114 | 114 | $this->assertSame($expectedPeriods, $salesSummary->getIntervals()); |
115 | 115 | $this->assertSame( |
116 | 116 | [ |
117 | - '0.00', '0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'20.00', |
|
118 | - '70.00', '40.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' |
|
117 | + '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '20.00', |
|
118 | + '70.00', '40.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00' |
|
119 | 119 | ], |
120 | 120 | $salesSummary->getSales() |
121 | 121 | ); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | function it_has_intervals_list(): void |
29 | 29 | { |
30 | 30 | $this->getIntervals()->shouldReturn( |
31 | - [9, 10 ,11] |
|
31 | + [9, 10, 11] |
|
32 | 32 | ); |
33 | 33 | } |
34 | 34 |
@@ -58,7 +58,7 @@ |
||
58 | 58 | |
59 | 59 | public function checkChannel($channelName): void |
60 | 60 | { |
61 | - if ($this->getDriver() instanceof Selenium2Driver || $this->getDriver() instanceof ChromeDriver) { |
|
61 | + if ($this->getDriver() instanceof Selenium2Driver || $this->getDriver() instanceof ChromeDriver) { |
|
62 | 62 | $this->getElement('channel', ['%channel%' => $channelName])->click(); |
63 | 63 | |
64 | 64 | return; |
@@ -138,7 +138,7 @@ |
||
138 | 138 | public function isOriginalPriceVisible(): bool |
139 | 139 | { |
140 | 140 | try { |
141 | - return null !== $this->getElement('product_original_price')->find('css','del'); |
|
141 | + return null !== $this->getElement('product_original_price')->find('css', 'del'); |
|
142 | 142 | } catch (ElementNotFoundException $elementNotFoundException) { |
143 | 143 | return false; |
144 | 144 | } |