Skip to content

Commit

Permalink
Merge branch '10.x' into 10/deps
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone committed Dec 26, 2024
2 parents ec18361 + 709e2b0 commit 20290d9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.
4 changes: 1 addition & 3 deletions src/Console/DevToolCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,7 @@ protected function promptForMissingArguments(InputInterface $input, OutputInterf
{
$install = null;

if ($input->getOption('skip-install') === true) {
$install = false;
} elseif (\is_null($input->getOption('install'))) {
if (\is_null($input->getOption('install'))) {
$install = confirm('Run Workbench installation?', true);
}

Expand Down
28 changes: 12 additions & 16 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,17 @@ protected function initialize(InputInterface $input, OutputInterface $output)
*/
public function handle(Filesystem $filesystem)
{
if (! $this->option('skip-devtool')) {
$devtool = match (true) {
\is_bool($this->option('devtool')) => $this->option('devtool'),
default => $this->components->confirm('Install Workbench DevTool?', true),
};

if ($devtool === true) {
$this->call('workbench:devtool', [
'--force' => $this->option('force'),
'--no-install' => true,
'--basic' => $this->option('basic'),
]);
}
$devtool = match (true) {
\is_bool($this->option('devtool')) => $this->option('devtool'),
default => $this->components->confirm('Install Workbench DevTool?', true),
};

if ($devtool === true) {
$this->call('workbench:devtool', [
'--force' => $this->option('force'),
'--no-install' => true,
'--basic' => $this->option('basic'),
]);
}

$workingPath = package_path();
Expand Down Expand Up @@ -243,9 +241,7 @@ protected function promptForMissingArguments(InputInterface $input, OutputInterf
{
$devtool = null;

if ($input->getOption('skip-devtool') === true) {
$devtool = false;
} elseif (\is_null($input->getOption('devtool'))) {
if (\is_null($input->getOption('devtool'))) {
$devtool = confirm('Run Workbench DevTool installation?', true);
}

Expand Down

0 comments on commit 20290d9

Please sign in to comment.