Skip to content

Commit 5dbe03b

Browse files
committed
Run Rector
1 parent 68adc25 commit 5dbe03b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/Command/MeilisearchClearCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Meilisearch\Bundle\Command;
66

7+
use Symfony\Component\Console\Command\Command;
78
use Symfony\Component\Console\Input\InputInterface;
89
use Symfony\Component\Console\Input\InputOption;
910
use Symfony\Component\Console\Output\OutputInterface;
@@ -26,7 +27,6 @@ public static function getDefaultDescription(): string
2627
protected function configure(): void
2728
{
2829
$this
29-
->setDescription(self::getDefaultDescription())
3030
->addOption('indices', 'i', InputOption::VALUE_OPTIONAL, 'Comma-separated list of index names');
3131
}
3232

@@ -54,6 +54,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5454

5555
$output->writeln('<info>Done!</info>');
5656

57-
return 0;
57+
return Command::SUCCESS;
5858
}
5959
}

src/Command/MeilisearchCreateCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Meilisearch\Bundle\SearchService;
1212
use Meilisearch\Bundle\SettingsProvider;
1313
use Meilisearch\Client;
14+
use Symfony\Component\Console\Command\Command;
1415
use Symfony\Component\Console\Input\InputInterface;
1516
use Symfony\Component\Console\Input\InputOption;
1617
use Symfony\Component\Console\Output\OutputInterface;
@@ -39,7 +40,6 @@ public static function getDefaultDescription(): string
3940
protected function configure(): void
4041
{
4142
$this
42-
->setDescription(self::getDefaultDescription())
4343
->addOption('indices', 'i', InputOption::VALUE_OPTIONAL, 'Comma-separated list of index names');
4444
}
4545

@@ -112,6 +112,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
112112

113113
$output->writeln('<info>Done!</info>');
114114

115-
return 0;
115+
return Command::SUCCESS;
116116
}
117117
}

src/Command/MeilisearchDeleteCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use Meilisearch\Bundle\Collection;
88
use Meilisearch\Exceptions\ApiException;
9+
use Symfony\Component\Console\Command\Command;
910
use Symfony\Component\Console\Input\InputInterface;
1011
use Symfony\Component\Console\Input\InputOption;
1112
use Symfony\Component\Console\Output\OutputInterface;
@@ -28,7 +29,6 @@ public static function getDefaultDescription(): string
2829
protected function configure(): void
2930
{
3031
$this
31-
->setDescription(self::getDefaultDescription())
3232
->addOption('indices', 'i', InputOption::VALUE_OPTIONAL, 'Comma-separated list of index names');
3333
}
3434

@@ -54,6 +54,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5454

5555
$output->writeln('<info>Done!</info>');
5656

57-
return 0;
57+
return Command::SUCCESS;
5858
}
5959
}

src/Command/MeilisearchImportCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Meilisearch\Bundle\SettingsProvider;
1414
use Meilisearch\Client;
1515
use Meilisearch\Exceptions\TimeOutException;
16+
use Symfony\Component\Console\Command\Command;
1617
use Symfony\Component\Console\Input\InputInterface;
1718
use Symfony\Component\Console\Input\InputOption;
1819
use Symfony\Component\Console\Output\OutputInterface;
@@ -48,7 +49,6 @@ public static function getDefaultDescription(): string
4849
protected function configure(): void
4950
{
5051
$this
51-
->setDescription(self::getDefaultDescription())
5252
->addOption('indices', 'i', InputOption::VALUE_OPTIONAL, 'Comma-separated list of index names')
5353
->addOption(
5454
'update-settings',
@@ -189,7 +189,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
189189

190190
$output->writeln('<info>Done!</info>');
191191

192-
return 0;
192+
return Command::SUCCESS;
193193
}
194194

195195
/**

0 commit comments

Comments
 (0)