Completed
Push — factor_out_orientations ( 5fabe5...6c5e91 )
by Doug
05:06
created
OrientatedItemFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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.