Skip to content

Commit 6f7862f

Browse files
committed
CS Fixer
1 parent 86e2b22 commit 6f7862f

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/Executor/PimcoreCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class PimcoreCommand extends AbstractExecutor
2424
* @param null | MonitoringItem $monitoringItem
2525
*
2626
* @return mixed
27+
*
2728
* @throws Exception
2829
*/
2930
public function getCommand($callbackSettings = [], $monitoringItem = null)
@@ -62,17 +63,16 @@ public function getCommand($callbackSettings = [], $monitoringItem = null)
6263
public function validateConfiguration(Configuration $configuration): void
6364
{
6465

65-
if($configuration->getExecutorSettings()){
66+
if ($configuration->getExecutorSettings()) {
6667
$settings = $configuration->getExecutorSettingsAsArray();
6768
$values = $settings['values'];
68-
if(!$values['command']){
69+
if (!$values['command']) {
6970
throw new Exception('Please provide a command.');
7071
}
7172
$commandValidator = \Pimcore::getKernel()->getContainer()->get(CommandsValidator::class);
7273
$commands = \Pimcore::getKernel()->getContainer()->get(CommandsValidator::class)->getValidCommands();
7374
$commandValidator->validateCommandConfiguration($commands[$values['command']], $configuration);
7475

75-
7676
}
7777
}
7878
}

src/Model/Configuration.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ public function getExecutorSettingsAsArray(): array
147147
return json_decode($this->getExecutorSettings(), true);
148148
}
149149

150-
151150
/**
152151
* @return $this
153152
*/

src/Service/CommandsValidator.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,13 @@ public function validateCommandConfiguration(LazyCommand | Command $command, Con
5050

5151
$commandOptions = $values['commandOptions'] ?? '';
5252

53-
54-
5553
//Todo: check if command options are valid
5654
//and throw an error if they are not valid
5755

58-
# throw new Exception('Command options are not valid');
56+
// throw new Exception('Command options are not valid');
5957

6058
}
59+
6160
/**
6261
* @return array<mixed>
6362
*/

0 commit comments

Comments
 (0)