Skip to content

Commit

Permalink
Merge pull request #3 from Kocal/fix/commands-falsy-options
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal authored May 18, 2024
2 parents 0be2024 + 7da0a83 commit 05af236
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Command/BiomeJsCheckCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$process = $this->biomeJs->check(
apply: $input->getOption('apply'),
applyUnsafe: $input->getOption('apply-unsafe'),
formatterEnabled: $input->getOption('formatter-enabled'),
linterEnabled: $input->getOption('linter-enabled'),
organizeImportsEnabled: $input->getOption('organize-imports-enabled'),
formatterEnabled: filter_var($input->getOption('formatter-enabled'), FILTER_VALIDATE_BOOL),
linterEnabled: filter_var($input->getOption('linter-enabled'), FILTER_VALIDATE_BOOL),
organizeImportsEnabled: filter_var($input->getOption('organize-imports-enabled'), FILTER_VALIDATE_BOOL),
staged: $input->getOption('staged'),
changed: $input->getOption('changed'),
since: $input->getOption('since'),
Expand Down
6 changes: 3 additions & 3 deletions src/Command/BiomeJsCiCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$this->biomeJs->setOutput($this->io);

$process = $this->biomeJs->ci(
formatterEnabled: $input->getOption('formatter-enabled'),
linterEnabled: $input->getOption('linter-enabled'),
organizeImportsEnabled: $input->getOption('organize-imports-enabled'),
formatterEnabled: filter_var($input->getOption('formatter-enabled'), FILTER_VALIDATE_BOOL),
linterEnabled: filter_var($input->getOption('linter-enabled'), FILTER_VALIDATE_BOOL),
organizeImportsEnabled: filter_var($input->getOption('organize-imports-enabled'), FILTER_VALIDATE_BOOL),
changed: $input->getOption('changed'),
since: $input->getOption('since'),
path: $input->getArgument('path'),
Expand Down

0 comments on commit 05af236

Please sign in to comment.