diff --git a/src/Console/Command/System/CheckCommand.php b/src/Console/Command/System/CheckCommand.php index 52f6a75..34374e4 100644 --- a/src/Console/Command/System/CheckCommand.php +++ b/src/Console/Command/System/CheckCommand.php @@ -551,7 +551,9 @@ private function formatSearchEngineVersion(array $info): string } return 'Search Engine Available'; - } /** + } + + /** * Test Elasticsearch connection and return version info * * @param string $url @@ -653,7 +655,9 @@ private function getDiskSpace(): string $usedPercent = round(($usedGB / $totalGB) * 100, 2); return "$usedGB GB / $totalGB GB ($usedPercent%)"; - } /** + } + + /** * Safely get environment variable value * * @param string $name Environment variable name diff --git a/src/Console/Command/Theme/BuildCommand.php b/src/Console/Command/Theme/BuildCommand.php index 0b2fbef..7098439 100644 --- a/src/Console/Command/Theme/BuildCommand.php +++ b/src/Console/Command/Theme/BuildCommand.php @@ -181,7 +181,7 @@ private function processBuildThemes( $spinner = new Spinner(sprintf("Building %s (%d of %d) ...", $themeNameCyan, $currentTheme, $totalThemes)); $success = false; - $spinner->spin(function() use ($validatedTheme, $io, $output, $isVerbose, &$successList, &$success) { + $spinner->spin(function () use ($validatedTheme, $io, $output, $isVerbose, &$successList, &$success) { $success = $this->buildValidatedTheme($validatedTheme, $io, $output, $isVerbose, $successList); return true; }); @@ -423,7 +423,7 @@ private function getCachedEnvironmentVariables(): array */ private function sanitizeEnvironmentValue(string $name, string $value): ?string { - return match($name) { + return match ($name) { 'COLUMNS', 'LINES' => $this->sanitizeNumericValue($value), 'TERM' => $this->sanitizeTermValue($value), 'CI', 'GITHUB_ACTIONS', 'GITLAB_CI' => $this->sanitizeBooleanValue($value), @@ -497,7 +497,7 @@ private function getServerVar(string $name): ?string private function setEnvVar(string $name, string $value): void { // Validate input parameters - if (empty($name) ) { + if (empty($name)) { return; } @@ -535,7 +535,9 @@ private function clearEnvironmentCache(): void { // Reset our secure storage $this->secureEnvStorage = []; - } /** + } + + /** * Check if the current environment supports interactive terminal input * * @param OutputInterface $output diff --git a/src/Console/Command/Theme/CleanCommand.php b/src/Console/Command/Theme/CleanCommand.php index d7fe658..0fd6c3b 100644 --- a/src/Console/Command/Theme/CleanCommand.php +++ b/src/Console/Command/Theme/CleanCommand.php @@ -575,7 +575,7 @@ private function getCachedEnvironmentVariables(): array */ private function sanitizeEnvironmentValue(string $name, string $value): ?string { - return match($name) { + return match ($name) { 'COLUMNS', 'LINES' => $this->sanitizeNumericValue($value), 'TERM' => $this->sanitizeTermValue($value), 'CI', 'GITHUB_ACTIONS', 'GITLAB_CI' => $this->sanitizeBooleanValue($value), @@ -643,7 +643,7 @@ private function getServerVar(string $name): ?string */ private function setEnvVar(string $name, string $value): void { - if (empty($name) ) { + if (empty($name)) { return; } diff --git a/src/Service/NodePackageManager.php b/src/Service/NodePackageManager.php index 8bd4fe6..22a9e79 100644 --- a/src/Service/NodePackageManager.php +++ b/src/Service/NodePackageManager.php @@ -16,7 +16,8 @@ class NodePackageManager public function __construct( private readonly Shell $shell, private readonly FileDriver $fileDriver - ) {} + ) { + } /** * Install node modules in the specified directory diff --git a/src/view/frontend/templates/inspector.phtml b/src/view/frontend/templates/inspector.phtml index dfb32bb..4fcedb0 100644 --- a/src/view/frontend/templates/inspector.phtml +++ b/src/view/frontend/templates/inspector.phtml @@ -11,7 +11,7 @@ */ ?> - + - +