@@ -66,7 +66,7 @@ |
||
| 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(); |
@@ -146,7 +146,7 @@ |
||
| 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 |