Skip to content

Commit 4f664b1

Browse files
author
Patrick
committed
replaces helper methods with a single method, adds calls to withNoneOption() where needed
1 parent 3b3b685 commit 4f664b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Commands/GenerateConfigCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ protected function outputFileExists(): bool
188188
protected function createCustomConfigGenerator(): CustomConfigGenerator
189189
{
190190
$generator = new CustomConfigGenerator();
191-
$prompt = new ConsoleSelectPathsForCustomFinderPrompt($this->input, $this->output, $this);
191+
$prompt = new ConsoleSelectPathsForCustomFinderPrompt($this->input, $this->output);
192192
$dirNames = Path::getSubDirectoryNames(getcwd());
193-
$include = $prompt->withIncludePromptType()->display($dirNames);
194-
$exclude = $prompt->withExcludePromptType()->display($dirNames, $include);
193+
$include = $prompt->withPromptType(1)->withNoneOption(false)->display($dirNames);
194+
$exclude = $prompt->withPromptType(2)->withNoneOption(true)->display($dirNames, $include);
195195

196196
$generator->setPaths($include, $exclude);
197197

0 commit comments

Comments
 (0)