@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | |
153 | 153 | /** @var OrientatedItem $orientation */ |
154 | 154 | foreach ($orientations as $o => $orientation) { |
155 | - $orientationFit = min($widthLeft - $orientation->getWidth(), $lengthLeft - $orientation->getLength()); |
|
155 | + $orientationFit = min($widthLeft - $orientation->getWidth(), $lengthLeft - $orientation->getLength()); |
|
156 | 156 | |
157 | 157 | $orientationFits[$o] = $orientationFit; |
158 | 158 | } |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | } |
201 | 201 | |
202 | 202 | //remove any that simply don't fit |
203 | - return array_filter($orientations, function (OrientatedItem $i) use ($widthLeft, $lengthLeft, $depthLeft) { |
|
203 | + return array_filter($orientations, function(OrientatedItem $i) use ($widthLeft, $lengthLeft, $depthLeft) { |
|
204 | 204 | return $i->getWidth() <= $widthLeft && $i->getLength() <= $lengthLeft && $i->getDepth() <= $depthLeft; |
205 | 205 | }); |
206 | 206 |