argument('theme'); if ($key !== null && ! isset($registry->all()[$key])) { $this->error("Theme „{$key}“ nicht gefunden. Installiert: ".implode(', ', array_keys($registry->all()))); return self::FAILURE; } $themes = $key !== null ? [$registry->all()[$key]] : array_values($registry->all()); $failed = false; foreach ($themes as $theme) { ['errors' => $errors, 'warnings' => $warnings] = $checker->check($theme); $this->line(''); $this->line("{$theme->name} ({$theme->key} {$theme->version}".($theme->parent ? ", Eltern-Theme {$theme->parent}" : '').')'); foreach ($errors as $error) { $this->line(" ✗ {$error}"); } foreach ($warnings as $warning) { $this->line(" ! {$warning}"); } if ($errors === [] && $warnings === []) { $this->line(' ✓ Alles in Ordnung.'); } $failed = $failed || $errors !== []; } $this->line(''); return $failed ? self::FAILURE : self::SUCCESS; } }