@@ -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 | } |
@@ -80,7 +80,7 @@ |
||
80 | 80 | $this->assertInstanceOf(SalesSummary::class, $salesSummary); |
81 | 81 | $this->assertSame($expectedPeriods, $salesSummary->getIntervals()); |
82 | 82 | $this->assertSame( |
83 | - ['70.00', '40.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00' ,'0.00'], |
|
83 | + ['70.00', '40.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00'], |
|
84 | 84 | $salesSummary->getSales() |
85 | 85 | ); |
86 | 86 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | function it_has_intervals_list(): void |
30 | 30 | { |
31 | 31 | $this->getIntervals()->shouldReturn( |
32 | - [1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ,11, 12] |
|
32 | + [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] |
|
33 | 33 | ); |
34 | 34 | } |
35 | 35 |
@@ -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 | } |