diff --git a/phpunit.xml b/phpunit.xml index 701913f..442b87b 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -2,11 +2,6 @@ diff --git a/src/Configuration.php b/src/Configuration.php index 130af04..f2571e7 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -303,13 +303,13 @@ private function parseNexusExtra(InputInterface $input, Composer $composer) } } else { // configurations in composer.json support upload to multi repository - foreach ($extras[$extrasConfigurationKey] as $key=> $nexusPushConfigItem) { + foreach ($extras[$extrasConfigurationKey] as $key => $nexusPushConfigItem) { if (empty($nexusPushConfigItem[self::PUSH_CFG_NAME])) { $fmt = 'The push configuration array in composer.json with index {%s} need provide value for key "%s"'; $exceptionMsg = sprintf($fmt, $key, self::PUSH_CFG_NAME); throw new InvalidConfigException($exceptionMsg); } - if ($nexusPushConfigItem[self::PUSH_CFG_NAME] ==$repository) { + if ($nexusPushConfigItem[self::PUSH_CFG_NAME] == $repository) { return $nexusPushConfigItem; } } diff --git a/src/ZipArchiver.php b/src/ZipArchiver.php index b2e5f69..37e6b3d 100644 --- a/src/ZipArchiver.php +++ b/src/ZipArchiver.php @@ -128,7 +128,7 @@ private static function updateVersion($zipFile, $subDirectory, $version, $io) $archive->deleteName($filePath); - $archive->addFromString($filePath, json_encode($content, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES)); + $archive->addFromString($filePath, json_encode($content, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); $archive->close(); }