Skip to content

Commit 9ceed7c

Browse files
committed
fix configuration.php for Windows OS
1 parent 47dc263 commit 9ceed7c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

configure.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,7 @@ function replaceForAllOtherOSes(): array {
126126
]);
127127

128128
match (true) {
129-
str_contains($file, 'src/Skeleton.php') => rename($file, './src/' . $className . '.php'),
130-
str_contains($file, 'src/SkeletonServiceProvider.php') => rename($file, './src/' . $className . 'ServiceProvider.php'),
131-
str_contains($file, 'src/Facades/Skeleton.php') => rename($file, './src/Facades/' . $className . '.php'),
132-
str_contains($file, 'src/Commands/SkeletonCommand.php') => rename($file, './src/Commands/' . $className . 'Command.php'),
133-
str_contains($file, 'database/migrations/create_skeleton_table.php.stub') => rename($file, './database/migrations/create_' . $packageSlugWithoutPrefix . '_table.php.stub'),
134-
str_contains($file, 'config/skeleton.php') => rename($file, './config/' . $packageSlugWithoutPrefix . '.php'),
129+
str_contains($file, 'src'.DIRECTORY_SEPARATOR.'SkeletonClass.php') => rename($file, '.'.DIRECTORY_SEPARATOR.'src'.DIRECTORY_SEPARATOR.'' . $className . 'Class.php'),
135130
default => [],
136131
};
137132

0 commit comments

Comments
 (0)