Completed
Push — master ( e77b1c...2d8cf3 )
by Doug
07:16
created
VolumePacker.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -152,8 +152,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.