@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace MartanLV\Koki; |
5 | 5 |
@@ -29,11 +29,11 @@ |
||
29 | 29 | |
30 | 30 | public function getEnd(): int |
31 | 31 | { |
32 | - return $this->high; |
|
33 | - } |
|
32 | + return $this->high; |
|
33 | + } |
|
34 | 34 | |
35 | 35 | public function getStart(): int |
36 | 36 | { |
37 | - return $this->low; |
|
38 | - } |
|
37 | + return $this->low; |
|
38 | + } |
|
39 | 39 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace MartanLV\Koki; |
5 | 5 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace MartanLV\Koki; |
6 | 6 | |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | return null; |
41 | 41 | } |
42 | 42 | |
43 | - array_walk($intervals, function (IntervalInterface $el) use (&$max) { |
|
43 | + array_walk($intervals, function(IntervalInterface $el) use (&$max) { |
|
44 | 44 | if ($max < $el->getEnd()) { |
45 | 45 | $max = $el->getEnd(); |
46 | 46 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function select(int $low, int $high): array |
68 | 68 | { |
69 | - return $this->root ? $this->root->select($low, $high) : []; |
|
69 | + return $this->root ? $this->root->select($low, $high) : [ ]; |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | public function yieldSelect(int $low, int $high) |
86 | 86 | { |
87 | - return $this->root ? $this->root->yieldSelect($low, $high) : []; |
|
87 | + return $this->root ? $this->root->yieldSelect($low, $high) : [ ]; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | public function all(): array |
95 | 95 | { |
96 | - return $this->root ? $this->root->all() : []; |
|
96 | + return $this->root ? $this->root->all() : [ ]; |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
@@ -103,6 +103,6 @@ discard block |
||
103 | 103 | */ |
104 | 104 | public function yieldAll() |
105 | 105 | { |
106 | - return $this->root ? $this->root->yieldAll() : []; |
|
106 | + return $this->root ? $this->root->yieldAll() : [ ]; |
|
107 | 107 | } |
108 | 108 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace MartanLV\Koki; |
5 | 5 |