active(); $rows = [[ThemeRepository::CLASSIC, 'Classic', '', $active === ThemeRepository::CLASSIC ? 'active' : 'built in']]; foreach ($themes->installed() as $theme) { $state = $theme->id === $active ? 'active' : 'available'; $problem = $themes->activationProblem($theme->id); $rows[] = [$theme->id, $theme->name, $theme->theme?->extends, $problem === null ? $state : "{$state}, unusable: {$problem}"]; } $this->table(['ID', 'Name', 'Extends', 'State'], $rows); return self::SUCCESS; } }