mirror of
https://github.com/filamentphp/plugin-skeleton.git
synced 2025-12-07 05:58:51 +08:00
Fix styling
This commit is contained in:
committed by
github-actions[bot]
parent
b9ce67e7a8
commit
364eb8e12c
@@ -142,8 +142,7 @@ foreach ($files as $file) {
|
|||||||
str_contains($file, determineSeparator('src/Facades/Skeleton.php')) => rename($file, determineSeparator('./src/Facades/' . $className . '.php')),
|
str_contains($file, determineSeparator('src/Facades/Skeleton.php')) => rename($file, determineSeparator('./src/Facades/' . $className . '.php')),
|
||||||
str_contains($file, determineSeparator('src/Commands/SkeletonCommand.php')) => rename($file, determineSeparator('./src/Commands/' . $className . 'Command.php')),
|
str_contains($file, determineSeparator('src/Commands/SkeletonCommand.php')) => rename($file, determineSeparator('./src/Commands/' . $className . 'Command.php')),
|
||||||
str_contains($file, determineSeparator('src/Testing/TestsSkeleton.php')) => rename($file, determineSeparator('./src/Testing/Tests' . $className . '.php')),
|
str_contains($file, determineSeparator('src/Testing/TestsSkeleton.php')) => rename($file, determineSeparator('./src/Testing/Tests' . $className . '.php')),
|
||||||
str_contains($file, determineSeparator('database/migrations/create_skeleton_table.php.stub')) => rename
|
str_contains($file, determineSeparator('database/migrations/create_skeleton_table.php.stub')) => rename($file, determineSeparator('./database/migrations/create_' . titleSnake($packageSlugWithoutPrefix) . '_table.php.stub')),
|
||||||
($file, determineSeparator('./database/migrations/create_' . titleSnake($packageSlugWithoutPrefix) . '_table.php.stub')),
|
|
||||||
str_contains($file, determineSeparator('config/skeleton.php')) => rename($file, determineSeparator('./config/' . $packageSlugWithoutPrefix . '.php')),
|
str_contains($file, determineSeparator('config/skeleton.php')) => rename($file, determineSeparator('./config/' . $packageSlugWithoutPrefix . '.php')),
|
||||||
str_contains($file, determineSeparator('resources/css/skeleton.css')) => rename($file, determineSeparator('./resources/css/' . $packageSlugWithoutPrefix . '.css')),
|
str_contains($file, determineSeparator('resources/css/skeleton.css')) => rename($file, determineSeparator('./resources/css/' . $packageSlugWithoutPrefix . '.css')),
|
||||||
str_contains($file, determineSeparator('resources/js/skeleton.js')) => rename($file, determineSeparator('./resources/js/' . $packageSlugWithoutPrefix . '.js')),
|
str_contains($file, determineSeparator('resources/js/skeleton.js')) => rename($file, determineSeparator('./resources/js/' . $packageSlugWithoutPrefix . '.js')),
|
||||||
@@ -306,12 +305,12 @@ function determineSeparator(string $path): string
|
|||||||
|
|
||||||
function replaceForWindows(): array
|
function replaceForWindows(): array
|
||||||
{
|
{
|
||||||
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:/ ":author :vendor :package VendorName skeleton migration_table_name vendor_name vendor_slug author@domain.com"'));
|
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:/ ":author :vendor :package VendorName skeleton migration_table_name vendor_name vendor_slug author@domain.com"'));
|
||||||
}
|
}
|
||||||
|
|
||||||
function replaceForAllOtherOSes(): array
|
function replaceForAllOtherOSes(): array
|
||||||
{
|
{
|
||||||
return explode(PHP_EOL, run('grep -E -r -l -i ":author|:vendor|:package|VendorName|skeleton|migration_table_name|vendor_name|vendor_slug|author@domain.com" --exclude-dir=vendor ./* ./.github/* | grep -v '.basename(__FILE__)));
|
return explode(PHP_EOL, run('grep -E -r -l -i ":author|:vendor|:package|VendorName|skeleton|migration_table_name|vendor_name|vendor_slug|author@domain.com" --exclude-dir=vendor ./* ./.github/* | grep -v ' . basename(__FILE__)));
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeDirectory($dir): void
|
function removeDirectory($dir): void
|
||||||
|
|||||||
Reference in New Issue
Block a user