Skip to content

Commit a87596c

Browse files
committed
refactor: rename appDetector to codeEnvironmentsDetector in InstallCommand for consistency
1 parent ae44de4 commit a87596c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Console/InstallCommand.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class InstallCommand extends Command
3232
{
3333
use Colors;
3434

35-
private CodeEnvironementsDetector $appDetector;
35+
private CodeEnvironementsDetector $codeEnvironmentsDetector;
3636

3737
private Herd $herd;
3838

@@ -67,9 +67,9 @@ class InstallCommand extends Command
6767

6868
private string $redCross;
6969

70-
public function handle(CodeEnvironementsDetector $appDetector, Herd $herd, Roster $roster, Terminal $terminal): void
70+
public function handle(CodeEnvironementsDetector $codeEnvironmentsDetector, Herd $herd, Roster $roster, Terminal $terminal): void
7171
{
72-
$this->bootstrapBoost($appDetector, $herd, $roster, $terminal);
72+
$this->bootstrapBoost($codeEnvironmentsDetector, $herd, $roster, $terminal);
7373

7474
$this->displayBoostHeader();
7575
$this->discoverEnvironment();
@@ -78,9 +78,9 @@ public function handle(CodeEnvironementsDetector $appDetector, Herd $herd, Roste
7878
$this->outro();
7979
}
8080

81-
private function bootstrapBoost(CodeEnvironementsDetector $appDetector, Herd $herd, Roster $roster, Terminal $terminal): void
81+
private function bootstrapBoost(CodeEnvironementsDetector $codeEnvironmentsDetector, Herd $herd, Roster $roster, Terminal $terminal): void
8282
{
83-
$this->appDetector = $appDetector;
83+
$this->codeEnvironmentsDetector = $codeEnvironmentsDetector;
8484
$this->herd = $herd;
8585
$this->roster = $roster;
8686
$this->terminal = $terminal;
@@ -150,7 +150,7 @@ private function enact(): void
150150
*/
151151
private function discoverSystemInstalledIdes(): array
152152
{
153-
return $this->appDetector->discoverSystemInstalledCodeEnvironements();
153+
return $this->codeEnvironmentsDetector->discoverSystemInstalledCodeEnvironements();
154154
}
155155

156156
/**
@@ -159,7 +159,7 @@ private function discoverSystemInstalledIdes(): array
159159
*/
160160
private function discoverIdesUsedInProject(): array
161161
{
162-
return $this->appDetector->discoverProjectInstalledCodeEnvironements(base_path());
162+
return $this->codeEnvironmentsDetector->discoverProjectInstalledCodeEnvironements(base_path());
163163
}
164164

165165
private function discoverTools(): array
@@ -303,7 +303,7 @@ protected function boostToolsToDisable(): array
303303
private function discoverProjectAgents(): array
304304
{
305305
$agents = [];
306-
$projectAgents = $this->appDetector->discoverProjectInstalledCodeEnvironements(base_path());
306+
$projectAgents = $this->codeEnvironmentsDetector->discoverProjectInstalledCodeEnvironements(base_path());
307307

308308
// Map IDE detections to their corresponding agents
309309
$ideToAgentMap = [

0 commit comments

Comments
 (0)