Completed
Push — master ( 4734ca...53d220 )
by Doug
14:09
created
src/PackedItemList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * @package BoxPacker
5 5
  * @author Doug Wright
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 namespace DVDoug\BoxPacker;
9 9
 
10 10
 /**
Please login to merge, or discard this patch.
src/Packer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * @package BoxPacker
5 5
  * @author Doug Wright
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 namespace DVDoug\BoxPacker;
9 9
 
10 10
 use Psr\Log\LoggerAwareInterface;
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 
150 150
             //Check iteration was productive
151 151
             if ($packedBoxesIteration->isEmpty()) {
152
-                throw new ItemTooLargeException('Item ' . $this->items->top()->getDescription() . ' is too large to fit into any box', $this->items->top());
152
+                throw new ItemTooLargeException('Item '.$this->items->top()->getDescription().' is too large to fit into any box', $this->items->top());
153 153
             }
154 154
 
155 155
             //Find best box of iteration, and remove packed items from unpacked list
Please login to merge, or discard this patch.
src/PackedBox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * @package BoxPacker
5 5
  * @author Doug Wright
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 namespace DVDoug\BoxPacker;
9 9
 
10 10
 /**
Please login to merge, or discard this patch.
src/OrientatedItemFactory.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * @package BoxPacker
5 5
  * @author Doug Wright
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 namespace DVDoug\BoxPacker;
9 9
 
10 10
 use Psr\Log\LoggerAwareInterface;
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         int $widthLeft,
44 44
         int $lengthLeft,
45 45
         int $depthLeft
46
-    ): ?OrientatedItem {
46
+    ) : ?OrientatedItem {
47 47
 
48 48
         $possibleOrientations = $this->getPossibleOrientations($item, $prevItem, $widthLeft, $lengthLeft, $depthLeft);
49 49
         $usableOrientations = $this->getUsableOrientations($possibleOrientations, $box, $item, $isLastItem);
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         int $widthLeft,
82 82
         int $lengthLeft,
83 83
         int $depthLeft
84
-    ): array {
84
+    ) : array {
85 85
 
86 86
         $orientations = [];
87 87
 
@@ -117,18 +117,18 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function getPossibleOrientationsInEmptyBox(Item $item, Box $box): array
119 119
     {
120
-        $cacheKey = $item->getWidth() .
121
-            '|' .
122
-            $item->getLength() .
123
-            '|' .
124
-            $item->getDepth() .
125
-            '|' .
126
-            ($item->getKeepFlat() ? '2D' : '3D') .
127
-            '|' .
128
-            $box->getInnerWidth() .
129
-            '|' .
130
-            $box->getInnerLength() .
131
-            '|' .
120
+        $cacheKey = $item->getWidth().
121
+            '|'.
122
+            $item->getLength().
123
+            '|'.
124
+            $item->getDepth().
125
+            '|'.
126
+            ($item->getKeepFlat() ? '2D' : '3D').
127
+            '|'.
128
+            $box->getInnerWidth().
129
+            '|'.
130
+            $box->getInnerLength().
131
+            '|'.
132 132
             $box->getInnerDepth();
133 133
 
134 134
         if (isset(static::$emptyBoxCache[$cacheKey])) {
Please login to merge, or discard this patch.
src/ItemList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * @package BoxPacker
5 5
  * @author Doug Wright
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 namespace DVDoug\BoxPacker;
9 9
 
10 10
 /**
Please login to merge, or discard this patch.