Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim-the-Diamond authored and github-actions[bot] committed Mar 6, 2024
1 parent 1745d58 commit b57c68d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/builder/build.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ function confirm(string $question, bool $default = false): bool
return strtolower($answer) === 'y';
}

function isValidPackageName($packageName){
function isValidPackageName($packageName)
{
if (empty($packageName)) {
return false;
}
Expand All @@ -34,6 +35,7 @@ function isValidPackageName($packageName){
if (str_contains(strtolower($packageName), $reservedName)) {
return false;
}

return true;
}

Expand Down Expand Up @@ -160,7 +162,7 @@ function replaceForAllOtherOSes(): array
do {
writeln('Invalid package name: "builder" is not allowed.');
$packageName = ask('Package name', $folderName);
} while (!isValidPackageName($packageName));
} while (! isValidPackageName($packageName));

$packageName = $packageName;
$packageSlug = slugify($packageName);
Expand Down

0 comments on commit b57c68d

Please sign in to comment.