Passed
Pull Request — master (#2)
by Pol
04:33
created
src/Linear.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace drupol\phpartition;
6 6
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
                 \usort(
95 95
                     $solutions,
96
-                    static function (array $x, array $y) {
96
+                    static function(array $x, array $y) {
97 97
                         return $x[0] <=> $y[0];
98 98
                     }
99 99
                 );
Please login to merge, or discard this patch.
src/Partition/Partition.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace drupol\phpartition\Partition;
6 6
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     public function exportArrayCopy()
19 19
     {
20 20
         return \array_map(
21
-            static function (Valuable $item) {
21
+            static function(Valuable $item) {
22 22
                 return $item->getValue();
23 23
             },
24 24
             $this->getArrayCopy()
Please login to merge, or discard this patch.
src/Partition/PartitionItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace drupol\phpartition\Partition;
6 6
 
Please login to merge, or discard this patch.
src/Partitions/Partitions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace drupol\phpartition\Partitions;
6 6
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     public function sort(callable $compareCallable = null)
65 65
     {
66 66
         if (null === $compareCallable) {
67
-            $compareCallable = static function (Partition $item1, Partition $item2) {
67
+            $compareCallable = static function(Partition $item1, Partition $item2) {
68 68
                 return $item1->getWeight() <=> $item2->getWeight();
69 69
             };
70 70
         }
Please login to merge, or discard this patch.
src/Partitions/PartitionsFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace drupol\phpartition\Partitions;
6 6
 
Please login to merge, or discard this patch.
src/Contract/PartitionerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace drupol\phpartition\Contract;
6 6
 
Please login to merge, or discard this patch.
src/Contract/Weightable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace drupol\phpartition\Contract;
6 6
 
Please login to merge, or discard this patch.
src/Contract/Valuable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace drupol\phpartition\Contract;
6 6
 
Please login to merge, or discard this patch.
src/Contract/PartitionItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace drupol\phpartition\Contract;
6 6
 
Please login to merge, or discard this patch.