Skip to content

Commit

Permalink
phpro#1098 add extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
malcomio committed Aug 3, 2023
1 parent f7d8483 commit 270bca6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Task/PhpMd.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ public function run(ContextInterface $context): TaskResultInterface
$arguments->addOptionalArgument('--exclude', !empty($config['exclude']));
$arguments->addOptionalCommaSeparatedArgument('%s', $config['exclude']);

$arguments->addOptionalCommaSeparatedArgument('--suffixes \'%s\'', $extensions);
$arguments->addOptionalArgument('--suffixes', !empty($extensions));
$arguments->addOptionalCommaSeparatedArgument('%s', $extensions);

$process = $this->processBuilder->buildProcess($arguments);
$process->run();
Expand Down

0 comments on commit 270bca6

Please sign in to comment.