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