@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | function it_assumes_quantity_is_1_if_not_provided_in_context(PriceableInterface $priceable) |
35 | 35 | { |
36 | 36 | $configuration = [ |
37 | - ['min' => 0, 'max' => 9, 'price' => 1699], |
|
37 | + ['min' => 0, 'max' => 9, 'price' => 1699], |
|
38 | 38 | ['min' => 10, 'max' => 19, 'price' => 1499], |
39 | 39 | ['min' => 20, 'max' => 29, 'price' => 1299], |
40 | 40 | ]; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | function it_returns_the_price_based_on_the_quantity(PriceableInterface $priceable) |
46 | 46 | { |
47 | 47 | $configuration = [ |
48 | - ['min' => 0, 'max' => 9, 'price' => 1699], |
|
48 | + ['min' => 0, 'max' => 9, 'price' => 1699], |
|
49 | 49 | ['min' => 10, 'max' => 19, 'price' => 1499], |
50 | 50 | ['min' => 20, 'max' => 29, 'price' => 1299], |
51 | 51 | ]; |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | function it_returns_the_correct_price_for_highest_quantity_range(PriceableInterface $priceable) |
58 | 58 | { |
59 | 59 | $configuration = [ |
60 | - ['min' => 0, 'max' => 9, 'price' => 1699], |
|
61 | - ['min' => 10, 'max' => 19, 'price' => 1499], |
|
62 | - ['min' => 20, 'max' => 29, 'price' => 1299], |
|
60 | + ['min' => 0, 'max' => 9, 'price' => 1699], |
|
61 | + ['min' => 10, 'max' => 19, 'price' => 1499], |
|
62 | + ['min' => 20, 'max' => 29, 'price' => 1299], |
|
63 | 63 | ['min' => 30, 'max' => null, 'price' => 1099], |
64 | 64 | ]; |
65 | 65 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $registry = $container->findDefinition('sylius.registry.grid_driver'); |
33 | 33 | |
34 | 34 | foreach ($container->findTaggedServiceIds('sylius.grid_driver') as $id => $attributes) { |
35 | - if (!isset($attributes[0]['alias'])) { |
|
35 | + if (!isset($attributes[0]['alias'])) { |
|
36 | 36 | throw new \InvalidArgumentException('Tagged grid drivers needs to have `alias` attribute.'); |
37 | 37 | } |
38 | 38 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $registry = $container->getDefinition('sylius.registry.grid_filter'); |
33 | 33 | |
34 | 34 | foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) { |
35 | - if (!isset($attributes[0]['type'])) { |
|
35 | + if (!isset($attributes[0]['type'])) { |
|
36 | 36 | throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.'); |
37 | 37 | } |
38 | 38 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $registry = $container->getDefinition('sylius.registry.grid_filter'); |
33 | 33 | |
34 | 34 | foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) { |
35 | - if (!isset($attributes[0]['type'])) { |
|
35 | + if (!isset($attributes[0]['type'])) { |
|
36 | 36 | throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.'); |
37 | 37 | } |
38 | 38 |
@@ -51,13 +51,13 @@ |
||
51 | 51 | |
52 | 52 | foreach ($securityRoles as $securityRole) { |
53 | 53 | if (!$user->hasRole($securityRole)) { |
54 | - $output->writeln(sprintf('<error>User "%s" didn\'t have "%s" Security role.</error>', (string)$user, $securityRole)); |
|
54 | + $output->writeln(sprintf('<error>User "%s" didn\'t have "%s" Security role.</error>', (string) $user, $securityRole)); |
|
55 | 55 | $error = true; |
56 | 56 | continue; |
57 | 57 | } |
58 | 58 | |
59 | 59 | $user->removeRole($securityRole); |
60 | - $output->writeln(sprintf('Security role <comment>%s</comment> has been removed from user <comment>%s</comment>', $securityRole, (string)$user)); |
|
60 | + $output->writeln(sprintf('Security role <comment>%s</comment> has been removed from user <comment>%s</comment>', $securityRole, (string) $user)); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | if (!$error) { |
@@ -232,7 +232,7 @@ |
||
232 | 232 | Assert::eq( |
233 | 233 | 1, |
234 | 234 | $this->updatePage->countMembers(), |
235 | - sprintf('Zone %s should have only %s zone member',$zone->getName(), $zoneMember->getCode()) |
|
235 | + sprintf('Zone %s should have only %s zone member', $zone->getName(), $zoneMember->getCode()) |
|
236 | 236 | ); |
237 | 237 | } |
238 | 238 |
@@ -69,7 +69,7 @@ |
||
69 | 69 | $translatable = $parent->getData(); |
70 | 70 | |
71 | 71 | foreach ($data as $locale => $translation) { |
72 | - if(null === $translation) { |
|
72 | + if (null === $translation) { |
|
73 | 73 | unset($data[$locale]); |
74 | 74 | continue; |
75 | 75 | } |
@@ -163,7 +163,7 @@ |
||
163 | 163 | */ |
164 | 164 | public function orderBy($field, $direction) |
165 | 165 | { |
166 | - $this->orderBys = [ $field => $direction ]; |
|
166 | + $this->orderBys = [$field => $direction]; |
|
167 | 167 | } |
168 | 168 | |
169 | 169 | /** |
@@ -76,7 +76,7 @@ |
||
76 | 76 | { |
77 | 77 | $this->shouldThrow( |
78 | 78 | new \RuntimeException('Unknown restrict condition "foo"') |
79 | - )->during('restrict', [ $comparison, 'foo' ]); |
|
79 | + )->during('restrict', [$comparison, 'foo']); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | function it_should_return_the_expression_builder( |