|
33 | 33 | $useLaravelRay = confirm('Use Ray for debugging?', true); |
34 | 34 | $useUpdateChangelogWorkflow = confirm('Use automatic changelog updater workflow?', true); |
35 | 35 |
|
36 | | -$isTheme = confirm("Is this a custom theme?"); |
37 | | -$formsOnly = ! $isTheme && confirm("Is this for Forms only?"); |
38 | | -$tablesOnly = ! $formsOnly && confirm("Is this for Tables only?"); |
| 36 | +$isTheme = confirm('Is this a custom theme?'); |
| 37 | +$formsOnly = ! $isTheme && confirm('Is this for Forms only?'); |
| 38 | +$tablesOnly = ! $formsOnly && confirm('Is this for Tables only?'); |
39 | 39 |
|
40 | 40 | writeln("\r"); |
41 | 41 | writeln('------'); |
|
83 | 83 | ]); |
84 | 84 | } else { |
85 | 85 | if ($isTheme) { |
86 | | - safeUnlink(__DIR__ . '/src/SkeletonServiceProvider.php'); |
| 86 | + safeUnlink(__DIR__.'/src/SkeletonServiceProvider.php'); |
87 | 87 | remove_package_script(['purge']); |
88 | 88 | remove_package_script(['dev:scripts']); |
89 | 89 | remove_package_script(['build:scripts']); |
|
179 | 179 | function ask(string $question, string $default = ''): string |
180 | 180 | { |
181 | 181 | $def = $default ? "\e[0;33m ({$default})" : ''; |
182 | | - $answer = readline("\e[0;32m" . $question.$def . ": \e[0m"); |
| 182 | + $answer = readline("\e[0;32m".$question.$def.": \e[0m"); |
183 | 183 |
|
184 | 184 | if (! $answer) { |
185 | 185 | return $default; |
@@ -337,7 +337,7 @@ function remove_tag(string $file, string $tag): void |
337 | 337 |
|
338 | 338 | file_put_contents( |
339 | 339 | $file, |
340 | | - preg_replace('/<!--' . $tag . '-->.*<!--\/' . $tag . '-->/s', '', $contents) ?: $contents |
| 340 | + preg_replace('/<!--'.$tag.'-->.*<!--\/'.$tag.'-->/s', '', $contents) ?: $contents |
341 | 341 | ); |
342 | 342 | } |
343 | 343 |
|
|
0 commit comments