@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | */ |
337 | 337 | public function getVariants() |
338 | 338 | { |
339 | - return $this->variants->filter(function (BaseVariantInterface $variant) { |
|
339 | + return $this->variants->filter(function(BaseVariantInterface $variant) { |
|
340 | 340 | return !$variant->isDeleted() && !$variant->isMaster(); |
341 | 341 | }); |
342 | 342 | } |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | */ |
347 | 347 | public function getAvailableVariants() |
348 | 348 | { |
349 | - return $this->variants->filter(function (BaseVariantInterface $variant) { |
|
349 | + return $this->variants->filter(function(BaseVariantInterface $variant) { |
|
350 | 350 | return !$variant->isDeleted() && !$variant->isMaster() && $variant->isAvailable(); |
351 | 351 | }); |
352 | 352 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * PHP 5.* bug, fixed in PHP 7: https://bugs.php.net/bug.php?id=50688 |
40 | 40 | * "usort(): Array was modified by the user comparison function" |
41 | 41 | */ |
42 | - @usort($files, function ($firstFile, $secondFile) use ($theme) { |
|
42 | + @usort($files, function($firstFile, $secondFile) use ($theme) { |
|
43 | 43 | $firstFile = str_replace($theme->getPath(), '', $firstFile); |
44 | 44 | $secondFile = str_replace($theme->getPath(), '', $secondFile); |
45 | 45 |
@@ -55,7 +55,7 @@ |
||
55 | 55 | public function getMatchers() |
56 | 56 | { |
57 | 57 | return [ |
58 | - 'haveFirstElement' => function ($subject, $element) { |
|
58 | + 'haveFirstElement' => function($subject, $element) { |
|
59 | 59 | if ($element !== reset($subject)) { |
60 | 60 | throw new \InvalidArgumentException(sprintf( |
61 | 61 | 'Expected "%s" as the first element, actual value was "%s".', |
@@ -33,15 +33,15 @@ |
||
33 | 33 | |
34 | 34 | function it_distributes_simple_integers() |
35 | 35 | { |
36 | - $this->distribute(4, 0)->shouldReturn(array(0, 0, 0, 0));; |
|
37 | - $this->distribute(4, 1000)->shouldReturn(array(250, 250, 250, 250));; |
|
38 | - $this->distribute(4, -1000)->shouldReturn(array(-250, -250, -250, -250));; |
|
36 | + $this->distribute(4, 0)->shouldReturn(array(0, 0, 0, 0)); ; |
|
37 | + $this->distribute(4, 1000)->shouldReturn(array(250, 250, 250, 250)); ; |
|
38 | + $this->distribute(4, -1000)->shouldReturn(array(-250, -250, -250, -250)); ; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | function it_distributes_integers_that_cannot_be_split_equally() |
42 | 42 | { |
43 | - $this->distribute(3, 1000)->shouldReturn(array(334, 333, 333));; |
|
44 | - $this->distribute(3, -1000)->shouldReturn(array(-334, -333, -333));; |
|
43 | + $this->distribute(3, 1000)->shouldReturn(array(334, 333, 333)); ; |
|
44 | + $this->distribute(3, -1000)->shouldReturn(array(-334, -333, -333)); ; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | function it_throws_exception_if_number_of_targets_is_not_integer_or_below_1() |
@@ -65,7 +65,7 @@ |
||
65 | 65 | public function getMatchers() |
66 | 66 | { |
67 | 67 | return [ |
68 | - 'haveFunction' => function ($subject, $key) { |
|
68 | + 'haveFunction' => function($subject, $key) { |
|
69 | 69 | |
70 | 70 | if (!is_array($subject)) { |
71 | 71 | throw new FailureException('Subject of "hasFunction" matcher must be an array'); |