CLI-1396: [app:new:local] Add project template option #2608
Annotations
1 error and 1 warning
Run Infection for added files only
Process completed with exit code 1.
|
Run Infection for added files only:
src/Command/App/NewCommand.php#L32
Escaped Mutant for Mutator "UnwrapArrayKeys":
--- Original
+++ New
@@ @@
private static array $distros = ['acquia_drupal_recommended' => 'acquia/drupal-recommended-project', 'acquia_next_acms' => 'acquia/next-acms'];
protected function configure() : void
{
- $this->addArgument('directory', InputArgument::OPTIONAL, 'The destination directory')->addOption('template', 't', InputOption::VALUE_OPTIONAL, 'The project template', null, array_keys(self::$distros))->addUsage('-t acquia_drupal_recommended');
+ $this->addArgument('directory', InputArgument::OPTIONAL, 'The destination directory')->addOption('template', 't', InputOption::VALUE_OPTIONAL, 'The project template', null, self::$distros)->addUsage('-t acquia_drupal_recommended');
}
/**
* @throws \Acquia\Cli\Exception\AcquiaCliException
|
Loading