|
142 | 142 | str_contains($file, determineSeparator('src/Facades/Skeleton.php')) => rename($file, determineSeparator('./src/Facades/' . $className . '.php')), |
143 | 143 | str_contains($file, determineSeparator('src/Commands/SkeletonCommand.php')) => rename($file, determineSeparator('./src/Commands/' . $className . 'Command.php')), |
144 | 144 | str_contains($file, determineSeparator('src/Testing/TestsSkeleton.php')) => rename($file, determineSeparator('./src/Testing/Tests' . $className . '.php')), |
145 | | - str_contains($file, determineSeparator('database/migrations/create_skeleton_table.php.stub')) => rename |
146 | | - ($file, determineSeparator('./database/migrations/create_' . titleSnake($packageSlugWithoutPrefix) . '_table.php.stub')), |
| 145 | + str_contains($file, determineSeparator('database/migrations/create_skeleton_table.php.stub')) => rename($file, determineSeparator('./database/migrations/create_' . titleSnake($packageSlugWithoutPrefix) . '_table.php.stub')), |
147 | 146 | str_contains($file, determineSeparator('config/skeleton.php')) => rename($file, determineSeparator('./config/' . $packageSlugWithoutPrefix . '.php')), |
148 | 147 | str_contains($file, determineSeparator('resources/css/skeleton.css')) => rename($file, determineSeparator('./resources/css/' . $packageSlugWithoutPrefix . '.css')), |
149 | 148 | str_contains($file, determineSeparator('resources/js/skeleton.js')) => rename($file, determineSeparator('./resources/js/' . $packageSlugWithoutPrefix . '.js')), |
@@ -306,12 +305,12 @@ function determineSeparator(string $path): string |
306 | 305 |
|
307 | 306 | function replaceForWindows(): array |
308 | 307 | { |
309 | | - 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 [email protected]"')); |
| 308 | + 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 [email protected]"')); |
310 | 309 | } |
311 | 310 |
|
312 | 311 | function replaceForAllOtherOSes(): array |
313 | 312 | { |
314 | | - return explode( PHP_EOL, run( 'grep -E -r -l -i ":author|:vendor|:package|VendorName|skeleton|migration_table_name|vendor_name|vendor_slug|[email protected]" --exclude-dir=vendor ./* ./.github/* | grep -v '.basename( __FILE__))); |
| 313 | + return explode( PHP_EOL, run( 'grep -E -r -l -i ":author|:vendor|:package|VendorName|skeleton|migration_table_name|vendor_name|vendor_slug|[email protected]" --exclude-dir=vendor ./* ./.github/* | grep -v ' . basename( __FILE__))); |
315 | 314 | } |
316 | 315 |
|
317 | 316 | function removeDirectory($dir): void |
|
0 commit comments