Skip to content

Commit e55f883

Browse files
committed
fix: correct spacing and formatting in multiple files
1 parent 31fb789 commit e55f883

5 files changed

Lines changed: 18 additions & 11 deletions

File tree

src/Console/Command/System/CheckCommand.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,9 @@ private function formatSearchEngineVersion(array $info): string
551551
}
552552

553553
return 'Search Engine Available';
554-
} /**
554+
}
555+
556+
/**
555557
* Test Elasticsearch connection and return version info
556558
*
557559
* @param string $url
@@ -653,7 +655,9 @@ private function getDiskSpace(): string
653655
$usedPercent = round(($usedGB / $totalGB) * 100, 2);
654656

655657
return "$usedGB GB / $totalGB GB ($usedPercent%)";
656-
} /**
658+
}
659+
660+
/**
657661
* Safely get environment variable value
658662
*
659663
* @param string $name Environment variable name

src/Console/Command/Theme/BuildCommand.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private function processBuildThemes(
181181
$spinner = new Spinner(sprintf("Building %s (%d of %d) ...", $themeNameCyan, $currentTheme, $totalThemes));
182182
$success = false;
183183

184-
$spinner->spin(function() use ($validatedTheme, $io, $output, $isVerbose, &$successList, &$success) {
184+
$spinner->spin(function () use ($validatedTheme, $io, $output, $isVerbose, &$successList, &$success) {
185185
$success = $this->buildValidatedTheme($validatedTheme, $io, $output, $isVerbose, $successList);
186186
return true;
187187
});
@@ -423,7 +423,7 @@ private function getCachedEnvironmentVariables(): array
423423
*/
424424
private function sanitizeEnvironmentValue(string $name, string $value): ?string
425425
{
426-
return match($name) {
426+
return match ($name) {
427427
'COLUMNS', 'LINES' => $this->sanitizeNumericValue($value),
428428
'TERM' => $this->sanitizeTermValue($value),
429429
'CI', 'GITHUB_ACTIONS', 'GITLAB_CI' => $this->sanitizeBooleanValue($value),
@@ -497,7 +497,7 @@ private function getServerVar(string $name): ?string
497497
private function setEnvVar(string $name, string $value): void
498498
{
499499
// Validate input parameters
500-
if (empty($name) ) {
500+
if (empty($name)) {
501501
return;
502502
}
503503

@@ -535,7 +535,9 @@ private function clearEnvironmentCache(): void
535535
{
536536
// Reset our secure storage
537537
$this->secureEnvStorage = [];
538-
} /**
538+
}
539+
540+
/**
539541
* Check if the current environment supports interactive terminal input
540542
*
541543
* @param OutputInterface $output

src/Console/Command/Theme/CleanCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ private function getCachedEnvironmentVariables(): array
575575
*/
576576
private function sanitizeEnvironmentValue(string $name, string $value): ?string
577577
{
578-
return match($name) {
578+
return match ($name) {
579579
'COLUMNS', 'LINES' => $this->sanitizeNumericValue($value),
580580
'TERM' => $this->sanitizeTermValue($value),
581581
'CI', 'GITHUB_ACTIONS', 'GITLAB_CI' => $this->sanitizeBooleanValue($value),
@@ -643,7 +643,7 @@ private function getServerVar(string $name): ?string
643643
*/
644644
private function setEnvVar(string $name, string $value): void
645645
{
646-
if (empty($name) ) {
646+
if (empty($name)) {
647647
return;
648648
}
649649

src/Service/NodePackageManager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ class NodePackageManager
1616
public function __construct(
1717
private readonly Shell $shell,
1818
private readonly FileDriver $fileDriver
19-
) {}
19+
) {
20+
}
2021

2122
/**
2223
* Install node modules in the specified directory

src/view/frontend/templates/inspector.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
?>
1313
<!-- MageForge Inspector Assets -->
14-
<link rel="stylesheet" type="text/css" href="<?= $block->escapeUrl($block->getCssUrl()) ?>" />
14+
<link rel="stylesheet" type="text/css" href="<?= $escaper->escapeUrl($block->getCssUrl()) ?>" />
1515

1616
<!-- Alpine.js Bootstrap (load only if not already present) -->
1717
<script>
@@ -41,7 +41,7 @@
4141
})();
4242
</script>
4343

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

4646
<!-- Inspector Component Wrapper -->
4747
<div class="mageforge-inspector" x-data="mageforgeInspector"></div>

0 commit comments

Comments
 (0)