Completed
Push — master ( 5c5914...1745af )
by Doug
05:42
created
PackedBoxList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         if (!$this->isSorted) {
67 67
             usort(
68 68
                 $this->list,
69
-                function (PackedBox $boxA, PackedBox $boxB) {
69
+                function(PackedBox $boxA, PackedBox $boxB) {
70 70
                     $choice = $boxB->getItems()->count() - $boxA->getItems()->count();
71 71
                     if ($choice === 0) {
72 72
                         $choice = $boxA->getBox()->getInnerVolume() - $boxB->getBox()->getInnerVolume();
Please login to merge, or discard this patch.
Packer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
 
147 147
             //Check iteration was productive
148 148
             if (count($packedBoxesIteration) === 0) {
149
-                throw new ItemTooLargeException('Item ' . $this->items->top()->getDescription() . ' is too large to fit into any box');
149
+                throw new ItemTooLargeException('Item '.$this->items->top()->getDescription().' is too large to fit into any box');
150 150
             }
151 151
 
152 152
             //Find best box of iteration, and remove packed items from unpacked list
Please login to merge, or discard this patch.