Completed
Push — master ( 58a2e7...d6a573 )
by David
05:06
created
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.
src/Dumper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $assetTypes = $this->getAssetsBuilder()->findAssetTypes($compositeRepos);
44 44
 
45 45
         // Let's get an array of values, indexed by asset type (to store in the discovery_values.php file)
46
-        $values = array_map(function (AssetType $assetType) {
46
+        $values = array_map(function(AssetType $assetType) {
47 47
             return $assetType->getValues();
48 48
         }, $assetTypes);
49 49
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 return '.var_export($values, true).";\n");
52 52
 
53 53
         // Let's get an array of assetTypes, indexed by asset type (to store in the discovery_asset_types.php file)
54
-        $assetTypes = array_map(function (AssetType $assetType) {
54
+        $assetTypes = array_map(function(AssetType $assetType) {
55 55
             return $assetType->jsonSerialize();
56 56
         }, $assetTypes);
57 57
 
Please login to merge, or discard this patch.
src/AssetsBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
         $orderedPackageList = PackagesOrderer::reorderPackages($unorderedPackagesList);
53 53
 
54
-        $packages = array_filter($orderedPackageList, function (PackageInterface $package) {
54
+        $packages = array_filter($orderedPackageList, function(PackageInterface $package) {
55 55
             $packageInstallPath = $this->getInstallPath($package);
56 56
 
57 57
             return file_exists($packageInstallPath.'/discovery.json');
Please login to merge, or discard this patch.