Completed
Push — issue89 ( 93fa49...529e43 )
by Doug
11:42
created
src/Packer.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 block discarded – undo
8 8
 
9 9
 namespace DVDoug\BoxPacker;
10 10
 
11
+use Psr\Log\LogLevel;
11 12
 use Psr\Log\LoggerAwareInterface;
12 13
 use Psr\Log\LoggerAwareTrait;
13
-use Psr\Log\LogLevel;
14 14
 use Psr\Log\NullLogger;
15 15
 
16 16
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  *
5 5
  * @author Doug Wright
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace DVDoug\BoxPacker;
10 10
 
Please login to merge, or discard this patch.
src/Item.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
  *
5 5
  * @author Doug Wright
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace DVDoug\BoxPacker;
10 10
 
Please login to merge, or discard this patch.
src/OrientatedItemFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  *
5 5
  * @author Doug Wright
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace DVDoug\BoxPacker;
10 10
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             return null;
57 57
         }
58 58
 
59
-        usort($usableOrientations, function (OrientatedItem $a, OrientatedItem $b) use ($widthLeft, $lengthLeft, $depthLeft, $nextItem) {
59
+        usort($usableOrientations, function(OrientatedItem $a, OrientatedItem $b) use ($widthLeft, $lengthLeft, $depthLeft, $nextItem) {
60 60
             $orientationAWidthLeft = $widthLeft - $a->getWidth();
61 61
             $orientationALengthLeft = $lengthLeft - $a->getLength();
62 62
             $orientationBWidthLeft = $widthLeft - $b->getWidth();
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         }
131 131
 
132 132
         //remove any that simply don't fit
133
-        return array_filter($orientations, function (OrientatedItem $i) use ($widthLeft, $lengthLeft, $depthLeft) {
133
+        return array_filter($orientations, function(OrientatedItem $i) use ($widthLeft, $lengthLeft, $depthLeft) {
134 134
             return $i->getWidth() <= $widthLeft && $i->getLength() <= $lengthLeft && $i->getDepth() <= $depthLeft;
135 135
         });
136 136
     }
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 
216 216
             $stableOrientationsInEmptyBox = array_filter(
217 217
                 $orientationsInEmptyBox,
218
-                function (OrientatedItem $orientation) {
218
+                function(OrientatedItem $orientation) {
219 219
                     return $orientation->isStable();
220 220
                 }
221 221
             );
Please login to merge, or discard this patch.
src/PackedItemList.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
  *
5 5
  * @author Doug Wright
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace DVDoug\BoxPacker;
10 10
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function asItemArray(): array
76 76
     {
77
-        return array_map(function (PackedItem $packedItem) {
77
+        return array_map(function(PackedItem $packedItem) {
78 78
             return $packedItem->getItem();
79 79
         }, $this->list);
80 80
     }
Please login to merge, or discard this patch.
src/WeightRedistributor.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 block discarded – undo
8 8
 
9 9
 namespace DVDoug\BoxPacker;
10 10
 
11
+use Psr\Log\LogLevel;
11 12
 use Psr\Log\LoggerAwareInterface;
12 13
 use Psr\Log\LoggerAwareTrait;
13
-use Psr\Log\LogLevel;
14 14
 use Psr\Log\NullLogger;
15 15
 
16 16
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  *
5 5
  * @author Doug Wright
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace DVDoug\BoxPacker;
10 10
 
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
  *
5 5
  * @author Doug Wright
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace DVDoug\BoxPacker;
10 10
 
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
  *
5 5
  * @author Doug Wright
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace DVDoug\BoxPacker;
10 10
 
Please login to merge, or discard this patch.
src/Box.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
  *
5 5
  * @author Doug Wright
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace DVDoug\BoxPacker;
10 10
 
Please login to merge, or discard this patch.
src/ConstrainedItem.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
  *
5 5
  * @author Doug Wright
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace DVDoug\BoxPacker;
10 10
 
Please login to merge, or discard this patch.