diff --git a/plugins/CorePluginsAdmin/Commands/InstallPlugin.php b/plugins/CorePluginsAdmin/Commands/InstallPlugin.php
index 43b9412b33e..2ae0a48a113 100644
--- a/plugins/CorePluginsAdmin/Commands/InstallPlugin.php
+++ b/plugins/CorePluginsAdmin/Commands/InstallPlugin.php
@@ -33,10 +33,10 @@ protected function doExecute(): int
$output = $this->getOutput();
$pluginManager = Manager::getInstance();
- if (!Marketplace::isMarketplaceEnabled()) {
- $output->writeln(sprintf("Marketplace is not enabled, can't install plugins."));
- return self::FAILURE;
- }
+ if (!Marketplace::isMarketplaceEnabled()) {
+ $output->writeln(sprintf("Marketplace is not enabled, can't install plugins."));
+ return self::FAILURE;
+ }
$pluginNames = $input->getArgument('plugin');
@@ -68,7 +68,7 @@ private function installPlugin(string $pluginName): void
$pluginInstaller->installOrUpdatePluginFromMarketplace($pluginName);
$pluginManager = Manager::getInstance();
- $pluginManager->loadPlugin($pluginName);
- $pluginManager->installLoadedPlugins();
+ $pluginManager->loadPlugin($pluginName);
+ $pluginManager->installLoadedPlugins();
}
}
diff --git a/plugins/Marketplace/Api/Client.php b/plugins/Marketplace/Api/Client.php
index 6e7f1af4476..818628d18b2 100644
--- a/plugins/Marketplace/Api/Client.php
+++ b/plugins/Marketplace/Api/Client.php
@@ -321,9 +321,9 @@ public function getDownloadUrl($pluginOrThemeName)
{
$plugin = $this->getPluginInfo($pluginOrThemeName);
- if (empty($plugin['isDownloadable'])) {
- throw new Exception('Plugin is not downloadable. License may be missing or expired.');
- }
+ if (empty($plugin['isDownloadable'])) {
+ throw new Exception('Plugin is not downloadable. License may be missing or expired.');
+ }
if (empty($plugin['versions'])) {
throw new Exception('Plugin has no versions.');
diff --git a/plugins/Marketplace/tests/System/Api/ClientTest.php b/plugins/Marketplace/tests/System/Api/ClientTest.php
index 119c80cc2ec..bcb84126d71 100644
--- a/plugins/Marketplace/tests/System/Api/ClientTest.php
+++ b/plugins/Marketplace/tests/System/Api/ClientTest.php
@@ -209,13 +209,13 @@ public function testGetDownloadUrl()
$this->assertRegExp('/\d+\.\d+\.\d+/', $version);
}
- public function testGetDownloadUrlMissingLicense()
- {
- $this->expectException(\Piwik\Plugins\Marketplace\Api\Exception::class);
- $this->expectExceptionMessage('Plugin is not downloadable');
+ public function testGetDownloadUrlMissingLicense()
+ {
+ $this->expectException(\Piwik\Plugins\Marketplace\Api\Exception::class);
+ $this->expectExceptionMessage('Plugin is not downloadable');
- $this->client->getDownloadUrl('FormAnalytics');
- }
+ $this->client->getDownloadUrl('FormAnalytics');
+ }
public function testClientResponseShouldBeCached()
{