Skip to content

Commit

Permalink
cs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
unixslayer committed May 21, 2024
1 parent 6ad2d98 commit 098e31f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Command/ProjectionNamesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

/** @var string|null $filter */
$filter = $input->getArgument(self::ARGUMENT_FILTER);
$regex = $input->getOption(static::OPTION_REGEX);
$regex = $input->getOption(self::OPTION_REGEX);

$output->write(\sprintf('<action>Projection names'));
if ($filter) {
Expand Down
4 changes: 2 additions & 2 deletions src/Command/ProjectionRunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ protected function configure(): void
$this
->setName('event-store:projection:run')
->setDescription('Runs a projection')
->addOption(static::OPTION_RUN_ONCE, 'o', InputOption::VALUE_NONE, 'Loop the projection only once, then exit');
->addOption(self::OPTION_RUN_ONCE, 'o', InputOption::VALUE_NONE, 'Loop the projection only once, then exit');
}

protected function execute(InputInterface $input, OutputInterface $output): int
{
$keepRunning = ! $input->getOption(static::OPTION_RUN_ONCE);
$keepRunning = ! $input->getOption(self::OPTION_RUN_ONCE);
$output->writeln(
\sprintf(
'<action>Starting projection <highlight>%s</highlight>. Keep running: <highlight>%s</highlight></action>',
Expand Down
2 changes: 1 addition & 1 deletion src/Projection/Options/ProjectionOptionsFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class ProjectionOptionsFactory
{
public static function createProjectionOptions(array $config): ProjectionOptions
{
\array_walk($config, ['self', 'mapOptions']);
\array_walk($config, [self::class, 'mapOptions']);

return new ProjectionOptions($config);
}
Expand Down

0 comments on commit 098e31f

Please sign in to comment.