|
@@ -80,7 +80,7 @@ discard block |
|
|
block discarded – undo |
|
80
|
80
|
$orientationFits = []; |
|
81
|
81
|
/** @var OrientatedItem $orientation */ |
|
82
|
82
|
foreach ($orientationsToUse as $o => $orientation) { |
|
83
|
|
- $orientationFit = min($widthLeft - $orientation->getWidth(), $lengthLeft - $orientation->getLength()); |
|
|
83
|
+ $orientationFit = min($widthLeft - $orientation->getWidth(), $lengthLeft - $orientation->getLength()); |
|
84
|
84
|
$orientationFits[$o] = $orientationFit; |
|
85
|
85
|
} |
|
86
|
86
|
|
|
@@ -127,7 +127,7 @@ discard block |
|
|
block discarded – undo |
|
127
|
127
|
} |
|
128
|
128
|
|
|
129
|
129
|
//remove any that simply don't fit |
|
130
|
|
- return array_filter($orientations, function (OrientatedItem $i) use ($widthLeft, $lengthLeft, $depthLeft) { |
|
|
130
|
+ return array_filter($orientations, function(OrientatedItem $i) use ($widthLeft, $lengthLeft, $depthLeft) { |
|
131
|
131
|
return $i->getWidth() <= $widthLeft && $i->getLength() <= $lengthLeft && $i->getDepth() <= $depthLeft; |
|
132
|
132
|
}); |
|
133
|
133
|
} |
Please login to merge, or discard this patch.