Skip to content

Commit 3a39499

Browse files
Fix styling
1 parent 10920af commit 3a39499

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/skeleton/build.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
function ask(string $question, string $default = ''): string
66
{
7-
$answer = readline($question . ($default ? " ({$default})" : null) . ': ');
7+
$answer = readline($question.($default ? " ({$default})" : null).': ');
88

99
if (! $answer) {
1010
return $default;
@@ -15,7 +15,7 @@ function ask(string $question, string $default = ''): string
1515

1616
function confirm(string $question, bool $default = false): bool
1717
{
18-
$answer = ask($question . ' (' . ($default ? 'Y/n' : 'y/N') . ')');
18+
$answer = ask($question.' ('.($default ? 'Y/n' : 'y/N').')');
1919

2020
if (! $answer) {
2121
return $default;
@@ -40,7 +40,7 @@ function isValidPackageName($packageName)
4040

4141
function writeln(string $line): void
4242
{
43-
echo $line . PHP_EOL;
43+
echo $line.PHP_EOL;
4444
}
4545

4646
function run(string $command): string
@@ -121,12 +121,12 @@ function determineSeparator(string $path): string
121121

122122
function replaceForWindows(): array
123123
{
124-
return preg_split('/\\r\\n|\\r|\\n/', run('dir /S /B * | findstr /v /i .git\ | findstr /v /i vendor | findstr /v /i ' . basename(__FILE__) . ' | findstr /r /i /M /F:/ "Skeleton skeleton"'));
124+
return preg_split('/\\r\\n|\\r|\\n/', run('dir /S /B * | findstr /v /i .git\ | findstr /v /i vendor | findstr /v /i '.basename(__FILE__).' | findstr /r /i /M /F:/ "Skeleton skeleton"'));
125125
}
126126

127127
function replaceForAllOtherOSes(): array
128128
{
129-
return explode(PHP_EOL, run('grep -E -r -l -i "Skeleton|skeleton" --exclude-dir=vendor ./* | grep -v ' . basename(__FILE__)));
129+
return explode(PHP_EOL, run('grep -E -r -l -i "Skeleton|skeleton" --exclude-dir=vendor ./* | grep -v '.basename(__FILE__)));
130130
}
131131

132132
writeln(' ');
@@ -201,12 +201,12 @@ function replaceForAllOtherOSes(): array
201201
]);
202202

203203
match (true) {
204-
str_contains($file, determineSeparator('src/SkeletonServiceProvider.php')) => rename($file, determineSeparator('./src/' . $className . 'ServiceProvider.php')),
204+
str_contains($file, determineSeparator('src/SkeletonServiceProvider.php')) => rename($file, determineSeparator('./src/'.$className.'ServiceProvider.php')),
205205
str_contains($file, 'README.md') => replace_readme_paragraphs($file, $description),
206206
default => [],
207207
};
208208
}
209-
rename(determineSeparator('config/skeleton.php'), determineSeparator('./config/' . $packageSlugWithoutPrefix . '.php'));
209+
rename(determineSeparator('config/skeleton.php'), determineSeparator('./config/'.$packageSlugWithoutPrefix.'.php'));
210210

211211
confirm('Execute `composer install` and run tests?') && run('composer install && composer test');
212212

0 commit comments

Comments
 (0)