66
77use Laravel \Prompts \SelectPrompt ;
88use Magento \Framework \Console \Cli ;
9- use OpenForgeProject \MageForge \Service \ThemeSuggester ;
109use OpenForgeProject \MageForge \Model \ThemeList ;
10+ use OpenForgeProject \MageForge \Service \ThemeSuggester ;
1111use Symfony \Component \Console \Command \Command ;
1212use Symfony \Component \Console \Input \InputInterface ;
1313use Symfony \Component \Console \Output \OutputInterface ;
@@ -487,10 +487,8 @@ private function removeSecureEnvironmentValue(string $name): void
487487 * @param ThemeList $themeList
488488 * @return array<string>
489489 */
490- protected function resolveVendorThemes (
491- array $ themeCodes ,
492- ThemeList $ themeList
493- ): array {
490+ protected function resolveVendorThemes (array $ themeCodes , ThemeList $ themeList ): array
491+ {
494492 $ resolved = [];
495493 $ availableThemes = null ;
496494
@@ -502,10 +500,7 @@ protected function resolveVendorThemes(
502500 if ($ isExplicitWildcard || $ isVendorOnly ) {
503501 // Lazy-load themes only when needed
504502 if ($ availableThemes === null ) {
505- $ availableThemes = array_map (
506- fn ($ theme ) => $ theme ->getCode (),
507- $ themeList ->getAllThemes ()
508- );
503+ $ availableThemes = array_map (fn ($ theme ) => $ theme ->getCode (), $ themeList ->getAllThemes ());
509504 }
510505
511506 if ($ isExplicitWildcard ) {
@@ -514,10 +509,10 @@ protected function resolveVendorThemes(
514509 $ prefix = $ code . '/ ' ; // e.g. "Vendor" -> "Vendor/"
515510 }
516511
517- $ matched = array_filter (
518- $ availableThemes ,
519- fn ( string $ availableCode ) => \str_starts_with ( $ availableCode , $ prefix)
520- );
512+ $ matched = array_filter ($ availableThemes , fn ( string $ availableCode ) => \str_starts_with (
513+ $ availableCode ,
514+ $ prefix,
515+ )) ;
521516
522517 if (empty ($ matched )) {
523518 $ this ->io ->warning (sprintf ("No themes found for vendor/prefix '%s' " , $ prefix ));
@@ -532,7 +527,7 @@ protected function resolveVendorThemes(
532527 "Resolved vendor '%s' to %d theme(s): %s " ,
533528 $ code ,
534529 count ($ matched ),
535- implode (', ' , $ matched )
530+ implode (', ' , $ matched ),
536531 ));
537532
538533 foreach ($ matched as $ match ) {
0 commit comments