Completed
Push — master ( 3e3e7d...a534d6 )
by David
11:20
created
src/Utils/JsonException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace TheCodingMachine\Discovery\Utils;
5 5
 
Please login to merge, or discard this patch.
src/AssetType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             $this->assets[] = $operation->getAsset();
37 37
         } else {
38 38
             // This is a remove!
39
-            $this->assets = array_values(array_filter($this->assets, function (Asset $asset) use ($operation) {
39
+            $this->assets = array_values(array_filter($this->assets, function(Asset $asset) use ($operation) {
40 40
                 return $asset->getValue() !== $operation->getAsset()->getValue();
41 41
             }));
42 42
         }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         }
55 55
 
56 56
         // Let's order assets by priority.
57
-        $this->stableSort($this->assets, function (Asset $asset1, Asset $asset2) {
57
+        $this->stableSort($this->assets, function(Asset $asset1, Asset $asset2) {
58 58
             return $asset2->getPriority() <=> $asset1->getPriority();
59 59
         });
60 60
 
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function getValues() : array
131 131
     {
132
-        return array_map(function (Asset $asset) {
132
+        return array_map(function(Asset $asset) {
133 133
             return $asset->getValue();
134 134
         }, $this->getAssets());
135 135
     }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function jsonSerialize()
145 145
     {
146
-        return array_map(function (Asset $asset) {
146
+        return array_map(function(Asset $asset) {
147 147
             return $asset->jsonSerialize();
148 148
         }, $this->getAssets());
149 149
     }
Please login to merge, or discard this patch.
src/PackagesOrderer.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 TheCodingMachine\Discovery;
6 6
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         // The very first step is to reorder the packages alphabetically.
29 29
         // This is to ensure the same order every time, even between packages that are unrelated.
30
-        usort($unorderedPackagesList, function (PackageInterface $packageA, PackageInterface $packageB) {
30
+        usort($unorderedPackagesList, function(PackageInterface $packageA, PackageInterface $packageB) {
31 31
             return strcmp($packageA->getName(), $packageB->getName());
32 32
         });
33 33
 
Please login to merge, or discard this patch.
src/ImmutableAssetType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      */
48 48
     public static function fromArray(string $name, array $assetsArray) : ImmutableAssetType
49 49
     {
50
-        $assets = array_map(function (array $assetArray) {
50
+        $assets = array_map(function(array $assetArray) {
51 51
             return Asset::fromArray($assetArray);
52 52
         }, $assetsArray);
53 53
         return new self($name, $assets);
Please login to merge, or discard this patch.
src/Utils/IOException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace TheCodingMachine\Discovery\Utils;
5 5
 
Please login to merge, or discard this patch.
src/DiscoveryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace TheCodingMachine\Discovery;
5 5
 
Please login to merge, or discard this patch.
src/Commands/ListAssetTypesCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                 $output->writeln(sprintf('<error>Could not find the "%s" asset type.</error>', $assetTypeName));
34 34
                 return;
35 35
             }
36
-            $assetTypes = [ $assetTypes[$assetTypeName] ];
36
+            $assetTypes = [$assetTypes[$assetTypeName]];
37 37
         }
38 38
 
39 39
         switch ($input->getOption('format')) {
Please login to merge, or discard this patch.
src/DiscoveryPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace TheCodingMachine\Discovery;
5 5
 
Please login to merge, or discard this patch.
src/AssetOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
         $simple = $this->asset->toSimpleArray();
113 113
         if ($this->operation === self::REMOVE) {
114 114
             if (is_string($simple)) {
115
-                $simple = [ 'value' => $simple ];
115
+                $simple = ['value' => $simple];
116 116
             }
117 117
             $simple['action'] = self::REMOVE;
118 118
         }
Please login to merge, or discard this patch.