@@ -59,7 +59,7 @@ class InstallBoostCommand extends Command
5959
6060 private bool $ enforceTests = true ;
6161
62- const MIN_TEST_COUNT = 6 ;
62+ public const MIN_TEST_COUNT = 6 ;
6363
6464 private string $ greenTick ;
6565
@@ -103,13 +103,13 @@ private function boostLogo(): string
103103 {
104104 return
105105 <<<'HEADER'
106- ██████╗ ██████╗ ██████╗ ███████╗ ████████╗
107- ██╔══██╗ ██╔═══██╗ ██╔═══██╗ ██╔════╝ ╚══██╔══╝
108- ██████╔╝ ██║ ██║ ██║ ██║ ███████╗ ██║
109- ██╔══██╗ ██║ ██║ ██║ ██║ ╚════██║ ██║
110- ██████╔╝ ╚██████╔╝ ╚██████╔╝ ███████║ ██║
111- ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝ ╚═╝
112- HEADER;
106+ ██████╗ ██████╗ ██████╗ ███████╗ ████████╗
107+ ██╔══██╗ ██╔═══██╗ ██╔═══██╗ ██╔════╝ ╚══██╔══╝
108+ ██████╔╝ ██║ ██║ ██║ ██║ ███████╗ ██║
109+ ██╔══██╗ ██║ ██║ ██║ ██║ ╚════██║ ██║
110+ ██████╔╝ ╚██████╔╝ ╚██████╔╝ ███████║ ██║
111+ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝ ╚═╝
112+ HEADER;
113113 }
114114
115115 private function discoverEnvironment (): void
@@ -165,8 +165,8 @@ private function outro(): void
165165 {
166166 $ label = 'https://boost.laravel.com/installed ' ;
167167
168- $ ideNames =
169- $ this ->selectedTargetMcpClient ->map (fn (McpClient $ mcpClient ) => 'i: ' . $ mcpClient ->mcpClientName ())
168+ $ ideNames
169+ = $ this ->selectedTargetMcpClient ->map (fn (McpClient $ mcpClient ) => 'i: ' . $ mcpClient ->mcpClientName ())
170170 ->toArray ();
171171 $ agentNames = $ this ->selectedTargetAgents ->map (fn (Agent $ agent ) => 'a: ' . $ agent ->agentName ())->toArray ();
172172 $ boostFeatures = $ this ->selectedBoostFeatures ->map (fn ($ feature ) => 'b: ' . $ feature )->toArray ();
@@ -189,9 +189,9 @@ private function outro(): void
189189 $ paddingLength = (int ) (floor (($ this ->terminal ->cols () - mb_strlen ($ text . $ label )) / 2 )) - 2 ;
190190
191191 echo "\033[42m \033[2K " . str_repeat (
192- ' ' ,
193- max (0 , $ paddingLength )
194- ); // Make the entire line have a green background
192+ ' ' ,
193+ max (0 , $ paddingLength )
194+ ); // Make the entire line have a green background
195195 echo $ this ->black ($ this ->bold ($ text . $ link )) . $ this ->reset (PHP_EOL ) . $ this ->reset (PHP_EOL );
196196 }
197197
@@ -216,18 +216,18 @@ protected function determineTestEnforcement(bool $ask = true): bool
216216
217217 /** Count the number of tests - they'll always have :: between the filename and test name */
218218 $ hasMinimumTests = Str::of ($ process ->getOutput ())
219- ->trim ()
220- ->explode ("\n" )
221- ->filter (fn ($ line ) => str_contains ($ line , ':: ' ))
222- ->count () >= self ::MIN_TEST_COUNT ;
219+ ->trim ()
220+ ->explode ("\n" )
221+ ->filter (fn ($ line ) => str_contains ($ line , ':: ' ))
222+ ->count () >= self ::MIN_TEST_COUNT ;
223223 }
224224
225225 if (! $ hasMinimumTests && $ ask ) {
226226 $ hasMinimumTests = select (
227- label : 'Should AI always create tests? ' ,
228- options: ['Yes ' , 'No ' ],
229- default: 'Yes '
230- ) === 'Yes ' ;
227+ label : 'Should AI always create tests? ' ,
228+ options: ['Yes ' , 'No ' ],
229+ default: 'Yes '
230+ ) === 'Yes ' ;
231231 }
232232
233233 return $ hasMinimumTests ;
@@ -353,8 +353,8 @@ private function selectCodeEnvironments(string $contractClass, string $label): C
353353 );
354354
355355 foreach ($ installedEnvNames as $ envKey ) {
356- $ matchingEnv =
357- $ availableEnvironments ->first (
356+ $ matchingEnv
357+ = $ availableEnvironments ->first (
358358 fn (CodeEnvironment $ env ) => strtolower ($ envKey ) === strtolower ($ env ->name ())
359359 );
360360 if ($ matchingEnv ) {
@@ -425,13 +425,15 @@ private function installGuidelines(): void
425425 $ failed = [];
426426 $ composedAiGuidelines = $ composer ->compose ();
427427
428- $ longestAgentName =
429- max (1 , ...$ this ->selectedTargetAgents ->map (fn ($ agent ) => Str::length ($ agent ->agentName ()))->toArray ());
428+ $ longestAgentName
429+ = max (1 , ...$ this ->selectedTargetAgents ->map (fn ($ agent ) => Str::length ($ agent ->agentName ()))->toArray ());
430+
430431 /** @var CodeEnvironment $agent */
431432 foreach ($ this ->selectedTargetAgents as $ agent ) {
432433 $ agentName = $ agent ->agentName ();
433434 $ displayAgentName = str_pad ($ agentName , $ longestAgentName );
434435 $ this ->output ->write (" {$ displayAgentName }... " );
436+
435437 /** @var Agent $agent */
436438 try {
437439 (new GuidelineWriter ($ agent ))
@@ -501,8 +503,8 @@ private function installMcpServerConfig(): void
501503 $ longestIdeName = max (
502504 1 ,
503505 ...$ this ->selectedTargetMcpClient ->map (
504- fn (McpClient $ mcpClient ) => Str::length ($ mcpClient ->mcpClientName ())
505- )->toArray ()
506+ fn (McpClient $ mcpClient ) => Str::length ($ mcpClient ->mcpClientName ())
507+ )->toArray ()
506508 );
507509
508510 /** @var McpClient $mcpClient */
0 commit comments