@@ -8,9 +8,9 @@ |
||
8 | 8 | |
9 | 9 | namespace DVDoug\BoxPacker; |
10 | 10 | |
11 | +use Psr\Log\LogLevel; |
|
11 | 12 | use Psr\Log\LoggerAwareInterface; |
12 | 13 | use Psr\Log\LoggerAwareTrait; |
13 | -use Psr\Log\LogLevel; |
|
14 | 14 | use Psr\Log\NullLogger; |
15 | 15 | |
16 | 16 | /** |
@@ -4,7 +4,7 @@ |
||
4 | 4 | * |
5 | 5 | * @author Doug Wright |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace DVDoug\BoxPacker; |
10 | 10 |
@@ -4,7 +4,7 @@ |
||
4 | 4 | * |
5 | 5 | * @author Doug Wright |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace DVDoug\BoxPacker; |
10 | 10 |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * |
5 | 5 | * @author Doug Wright |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace DVDoug\BoxPacker; |
10 | 10 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | return null; |
57 | 57 | } |
58 | 58 | |
59 | - usort($usableOrientations, function (OrientatedItem $a, OrientatedItem $b) use ($widthLeft, $lengthLeft, $depthLeft, $nextItem) { |
|
59 | + usort($usableOrientations, function(OrientatedItem $a, OrientatedItem $b) use ($widthLeft, $lengthLeft, $depthLeft, $nextItem) { |
|
60 | 60 | $orientationAWidthLeft = $widthLeft - $a->getWidth(); |
61 | 61 | $orientationALengthLeft = $lengthLeft - $a->getLength(); |
62 | 62 | $orientationBWidthLeft = $widthLeft - $b->getWidth(); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | } |
131 | 131 | |
132 | 132 | //remove any that simply don't fit |
133 | - return array_filter($orientations, function (OrientatedItem $i) use ($widthLeft, $lengthLeft, $depthLeft) { |
|
133 | + return array_filter($orientations, function(OrientatedItem $i) use ($widthLeft, $lengthLeft, $depthLeft) { |
|
134 | 134 | return $i->getWidth() <= $widthLeft && $i->getLength() <= $lengthLeft && $i->getDepth() <= $depthLeft; |
135 | 135 | }); |
136 | 136 | } |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | |
216 | 216 | $stableOrientationsInEmptyBox = array_filter( |
217 | 217 | $orientationsInEmptyBox, |
218 | - function (OrientatedItem $orientation) { |
|
218 | + function(OrientatedItem $orientation) { |
|
219 | 219 | return $orientation->isStable(); |
220 | 220 | } |
221 | 221 | ); |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * |
5 | 5 | * @author Doug Wright |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace DVDoug\BoxPacker; |
10 | 10 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function asItemArray(): array |
76 | 76 | { |
77 | - return array_map(function (PackedItem $packedItem) { |
|
77 | + return array_map(function(PackedItem $packedItem) { |
|
78 | 78 | return $packedItem->getItem(); |
79 | 79 | }, $this->list); |
80 | 80 | } |
@@ -8,9 +8,9 @@ |
||
8 | 8 | |
9 | 9 | namespace DVDoug\BoxPacker; |
10 | 10 | |
11 | +use Psr\Log\LogLevel; |
|
11 | 12 | use Psr\Log\LoggerAwareInterface; |
12 | 13 | use Psr\Log\LoggerAwareTrait; |
13 | -use Psr\Log\LogLevel; |
|
14 | 14 | use Psr\Log\NullLogger; |
15 | 15 | |
16 | 16 | /** |
@@ -4,7 +4,7 @@ |
||
4 | 4 | * |
5 | 5 | * @author Doug Wright |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace DVDoug\BoxPacker; |
10 | 10 |
@@ -4,7 +4,7 @@ |
||
4 | 4 | * |
5 | 5 | * @author Doug Wright |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace DVDoug\BoxPacker; |
10 | 10 |
@@ -4,7 +4,7 @@ |
||
4 | 4 | * |
5 | 5 | * @author Doug Wright |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace DVDoug\BoxPacker; |
10 | 10 |
@@ -4,7 +4,7 @@ |
||
4 | 4 | * |
5 | 5 | * @author Doug Wright |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace DVDoug\BoxPacker; |
10 | 10 |
@@ -4,7 +4,7 @@ |
||
4 | 4 | * |
5 | 5 | * @author Doug Wright |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace DVDoug\BoxPacker; |
10 | 10 |