Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/Console/Command/System/CheckCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,9 @@ private function formatSearchEngineVersion(array $info): string
}

return 'Search Engine Available';
} /**
}

/**
* Test Elasticsearch connection and return version info
*
* @param string $url
Expand Down Expand Up @@ -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
Expand Down
10 changes: 6 additions & 4 deletions src/Console/Command/Theme/BuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Console/Command/Theme/CleanCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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;
}

Expand Down
3 changes: 2 additions & 1 deletion src/Service/NodePackageManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class NodePackageManager
public function __construct(
private readonly Shell $shell,
private readonly FileDriver $fileDriver
) {}
) {
}

/**
* Install node modules in the specified directory
Expand Down
4 changes: 2 additions & 2 deletions src/view/frontend/templates/inspector.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
?>
<!-- MageForge Inspector Assets -->
<link rel="stylesheet" type="text/css" href="<?= $block->escapeUrl($block->getCssUrl()) ?>" />
<link rel="stylesheet" type="text/css" href="<?= $escaper->escapeUrl($block->getCssUrl()) ?>" />

<!-- Alpine.js Bootstrap (load only if not already present) -->
<script>
Expand Down Expand Up @@ -41,7 +41,7 @@
})();
</script>

<script defer src="<?= $block->escapeUrl($block->getJsUrl()) ?>"></script>
<script defer src="<?= $escaper->escapeUrl($block->getJsUrl()) ?>"></script>

<!-- Inspector Component Wrapper -->
<div class="mageforge-inspector" x-data="mageforgeInspector"></div>
Expand Down
Loading