@@ -49,7 +49,7 @@ |
||
49 | 49 | |
50 | 50 | $orderedPackageList = PackagesOrderer::reorderPackages($unorderedPackagesList); |
51 | 51 | |
52 | - $packages = array_filter($orderedPackageList, function (PackageInterface $package) { |
|
52 | + $packages = array_filter($orderedPackageList, function(PackageInterface $package) { |
|
53 | 53 | $installationManager = $this->installationManager; |
54 | 54 | |
55 | 55 | $packageInstallPath = $installationManager->getInstallPath($package); |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace TheCodingMachine\Discovery; |
6 | 6 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $assetTypes = $this->getAssetsBuilder()->findAssetTypes($localRepos); |
68 | 68 | |
69 | 69 | // Let's get an array of values, indexed by asset type (to store in the discovery_values.php file) |
70 | - $values = array_map(function (AssetType $assetType) { |
|
70 | + $values = array_map(function(AssetType $assetType) { |
|
71 | 71 | return $assetType->getValues(); |
72 | 72 | }, $assetTypes); |
73 | 73 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | return '.var_export($values, true).";\n"); |
76 | 76 | |
77 | 77 | // Let's get an array of assetTypes, indexed by asset type (to store in the discovery_asset_types.php file) |
78 | - $assetTypes = array_map(function (AssetType $assetType) { |
|
78 | + $assetTypes = array_map(function(AssetType $assetType) { |
|
79 | 79 | return $assetType->jsonSerialize(); |
80 | 80 | }, $assetTypes); |
81 | 81 |
@@ -33,7 +33,7 @@ |
||
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')) { |