From 314a73c52cc92aa883c24bdde1d1ad5820e93cd7 Mon Sep 17 00:00:00 2001 From: jrenaudo Date: Thu, 15 Aug 2024 17:48:58 +0200 Subject: [PATCH] Fix code styling and phpunit.xml --- phpunit.xml | 5 ----- src/Configuration.php | 4 ++-- src/ZipArchiver.php | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) 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(); }