Skip to content

Commit 82e676d

Browse files
committed
style: fix code style
1 parent 15430f8 commit 82e676d

File tree

4 files changed

+24
-25
lines changed

4 files changed

+24
-25
lines changed

src/Command/TestPluginLoaderAction.php

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,34 @@
55
namespace NuonicPluginInstaller\Command;
66

77
use NuonicPluginInstaller\Action\LoadPluginAction;
8+
use Symfony\Component\Console\Attribute\AsCommand;
89
use Symfony\Component\Console\Command\Command;
910
use Symfony\Component\Console\Input\InputInterface;
10-
use Symfony\Component\Console\Output\OutputInterface;
11-
use Symfony\Component\Console\Attribute\AsCommand;
1211
use Symfony\Component\Console\Input\InputOption;
12+
use Symfony\Component\Console\Output\OutputInterface;
1313

1414
// Command name
1515
#[AsCommand(name: 'nuonic:plugin-installer:plugin:load')]
1616
class TestPluginLoaderAction extends Command
1717
{
18-
public function __construct(
19-
private LoadPluginAction $loadPluginAction,
20-
) {
21-
parent::__construct();
22-
}
23-
// Provides a description, printed out in bin/console
24-
protected function configure(): void
25-
{
26-
$this->setDescription('Tests LoadPluginAction');
27-
$this->addOption('packageName', 'p', InputOption::VALUE_REQUIRED, 'Package name to load');
28-
}
18+
public function __construct(
19+
private LoadPluginAction $loadPluginAction,
20+
) {
21+
parent::__construct();
22+
}
23+
24+
// Provides a description, printed out in bin/console
25+
protected function configure(): void
26+
{
27+
$this->setDescription('Tests LoadPluginAction');
28+
$this->addOption('packageName', 'p', InputOption::VALUE_REQUIRED, 'Package name to load');
29+
}
30+
31+
// Actual code executed in the command
32+
protected function execute(InputInterface $input, OutputInterface $output): int
33+
{
34+
$this->loadPluginAction->execute($input->getOption('packageName'));
2935

30-
// Actual code executed in the command
31-
protected function execute(InputInterface $input, OutputInterface $output): int
32-
{
33-
$this->loadPluginAction->execute($input->getOption('packageName'));
34-
return Command::SUCCESS;
35-
}
36+
return Command::SUCCESS;
37+
}
3638
}

src/Core/Framework/Plugin/AvailableOpensourcePlugin/AvailableOpensourcePluginDefinition.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ protected function defineFields(): FieldCollection
6060

6161
new FkField('plugin_id', 'pluginId', PluginDefinition::class),
6262
new OneToOneAssociationField('plugin', 'plugin_id', 'id', PluginDefinition::class),
63-
6463
]);
6564
}
6665
}

src/Migration/Migration1741388682NuonicAvailableOpensourcePlugin.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace NuonicPluginInstaller\Migration;
46

src/ScheduledTask/LoadPluginInfo/LoadPluginInfoScheduledTask.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@
88

99
class LoadPluginInfoScheduledTask extends ScheduledTask
1010
{
11-
1211
public static function getTaskName(): string
1312
{
1413
return 'nuonic_plugin_installer.load_plugin_info';
1514
}
1615

17-
/**
18-
* @inheritDoc
19-
*/
2016
public static function getDefaultInterval(): int
2117
{
2218
return 1_800;

0 commit comments

Comments
 (0)