|
@@ -253,7 +253,7 @@ discard block |
|
|
block discarded – undo |
|
253
|
253
|
$orientationFits = []; |
|
254
|
254
|
/** @var OrientatedItem $orientation */ |
|
255
|
255
|
foreach ($orientationsToUse as $o => $orientation) { |
|
256
|
|
- $orientationFit = min($widthLeft - $orientation->getWidth(), $lengthLeft - $orientation->getLength()); |
|
|
256
|
+ $orientationFit = min($widthLeft - $orientation->getWidth(), $lengthLeft - $orientation->getLength()); |
|
257
|
257
|
$orientationFits[$o] = $orientationFit; |
|
258
|
258
|
} |
|
259
|
259
|
|
|
@@ -300,7 +300,7 @@ discard block |
|
|
block discarded – undo |
|
300
|
300
|
} |
|
301
|
301
|
|
|
302
|
302
|
//remove any that simply don't fit |
|
303
|
|
- return array_filter($orientations, function (OrientatedItem $i) use ($widthLeft, $lengthLeft, $depthLeft) { |
|
|
303
|
+ return array_filter($orientations, function(OrientatedItem $i) use ($widthLeft, $lengthLeft, $depthLeft) { |
|
304
|
304
|
return $i->getWidth() <= $widthLeft && $i->getLength() <= $lengthLeft && $i->getDepth() <= $depthLeft; |
|
305
|
305
|
}); |
|
306
|
306
|
|
Please login to merge, or discard this patch.