@@ -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); |
@@ -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')) { |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace TheCodingMachine\Discovery; |
| 5 | 5 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $assetTypes = $this->getAssetsBuilder()->findAssetTypes($localRepos); |
| 37 | 37 | |
| 38 | 38 | // Let's get an array of values, indexed by asset type (to store in the discovery_values.php file) |
| 39 | - $values = array_map(function (AssetType $assetType) { |
|
| 39 | + $values = array_map(function(AssetType $assetType) { |
|
| 40 | 40 | return $assetType->getValues(); |
| 41 | 41 | }, $assetTypes); |
| 42 | 42 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | return '.var_export($values, true).";\n"); |
| 45 | 45 | |
| 46 | 46 | // Let's get an array of assetTypes, indexed by asset type (to store in the discovery_asset_types.php file) |
| 47 | - $assetTypes = array_map(function (AssetType $assetType) { |
|
| 47 | + $assetTypes = array_map(function(AssetType $assetType) { |
|
| 48 | 48 | return $assetType->jsonSerialize(); |
| 49 | 49 | }, $assetTypes); |
| 50 | 50 | |
@@ -112,7 +112,7 @@ |
||
| 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 | } |