Skip to content

Commit e4b04d2

Browse files
committed
Remove straggling unnecessary service variables
1 parent c39a741 commit e4b04d2

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/Command/Local/LocalDrushAliasesCommand.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
106106

107107
$this->stdErr->writeln("Creating Drush aliases in the group <info>@$new_group</info>");
108108

109-
$questionHelper = $this->questionHelper;
110-
111109
if ($new_group !== $current_group) {
112110
$existing = $this->drush->getAliases($new_group);
113111
if (!empty($existing)) {
@@ -175,7 +173,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
175173

176174
$this->drush->createAliases($project, $projectRoot, $environments, $current_group);
177175

178-
$this->ensureDrushConfig($this->drush);
176+
$this->ensureDrushConfig();
179177

180178
if ($new_group !== $current_group && !empty($aliases)) {
181179
if ($this->questionHelper->confirm("Delete old Drush alias group <info>@$current_group</info>?")) {
@@ -203,7 +201,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
203201
/**
204202
* Ensures that the .drush/drush.yml file has the right config.
205203
*/
206-
protected function ensureDrushConfig(Drush $drush): void
204+
protected function ensureDrushConfig(): void
207205
{
208206
if (!is_dir($this->drush->getSiteAliasDir())) {
209207
return;
@@ -228,8 +226,7 @@ protected function ensureDrushConfig(Drush $drush): void
228226

229227
$drushConfig['drush']['paths']['alias-path'][] = $aliasPath;
230228

231-
$fs = $this->filesystem;
232-
$fs->writeFile($drushYml, Yaml::dump($drushConfig, 5));
229+
$this->filesystem->writeFile($drushYml, Yaml::dump($drushConfig, 5));
233230
}
234231
}
235232

src/Command/Project/ProjectGetCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
102102

103103
$this->stdErr->writeln('');
104104

105-
$questionHelper = $this->questionHelper;
106105
if ($this->questionHelper->confirm($questionText)) {
107106
return $this->subCommandRunner->run('project:set-remote', ['project' => $project->id], $output);
108107
}

0 commit comments

Comments
 (0)