|
4 | 4 |
|
5 | 5 | use Illuminate\Console\Command;
|
6 | 6 | use Illuminate\Filesystem\Filesystem;
|
| 7 | + |
7 | 8 | use function Laravel\Prompts\confirm;
|
8 | 9 |
|
9 | 10 | class InstallCommand extends Command
|
@@ -43,39 +44,39 @@ private function copyBlogModuleDirectory(): void
|
43 | 44 | {
|
44 | 45 | $this->info('Copying Blog Module directory...');
|
45 | 46 | (new Filesystem)->ensureDirectoryExists(base_path('modules'));
|
46 |
| - (new Filesystem)->copyDirectory(__DIR__ . '/../../stubs/modules/Blog', base_path('modules/Blog')); |
| 47 | + (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/modules/Blog', base_path('modules/Blog')); |
47 | 48 | $this->info('Blog Module directory copied successfully.');
|
48 | 49 | }
|
49 | 50 |
|
50 | 51 | private function copyResourcesComponentsFiles(): void
|
51 | 52 | {
|
52 | 53 | $this->info('Copying Blog Module components...');
|
53 | 54 | (new Filesystem)->ensureDirectoryExists(resource_path('js/Components/Modules/Blog'));
|
54 |
| - (new Filesystem)->copyDirectory(__DIR__ . '/../../stubs/resources/js/Components/Modules/Blog', resource_path('js/Components/Modules/Blog')); |
| 55 | + (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/resources/js/Components/Modules/Blog', resource_path('js/Components/Modules/Blog')); |
55 | 56 | $this->info('Blog Module components copied successfully.');
|
56 | 57 | }
|
57 | 58 |
|
58 | 59 | private function copyResourcesFiles(): void
|
59 | 60 | {
|
60 | 61 | $this->info('Copying Blog Module resources...');
|
61 | 62 | (new Filesystem)->ensureDirectoryExists(resource_path('js/Pages'));
|
62 |
| - (new Filesystem)->copyDirectory(__DIR__ . '/../../stubs/resources/js/Pages', resource_path('js/Pages')); |
| 63 | + (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/resources/js/Pages', resource_path('js/Pages')); |
63 | 64 | $this->info('Blog Module resources copied successfully.');
|
64 | 65 | }
|
65 | 66 |
|
66 | 67 | private function copyResourcesSiteFiles(): void
|
67 | 68 | {
|
68 | 69 | $this->info('Copying Blog Module resources-site...');
|
69 | 70 | (new Filesystem)->ensureDirectoryExists(base_path('resources-site'));
|
70 |
| - (new Filesystem)->copyDirectory(__DIR__ . '/../../stubs/resources-site', base_path('resources-site')); |
| 71 | + (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/resources-site', base_path('resources-site')); |
71 | 72 | $this->info('Blog Module resources-site copied successfully.');
|
72 | 73 | }
|
73 | 74 |
|
74 | 75 | private function copyTranslationFile(): void
|
75 | 76 | {
|
76 | 77 | $paginationEnglish = base_path('lang/en/pagination.php');
|
77 | 78 |
|
78 |
| - if(!file_exists($paginationEnglish)){ |
| 79 | + if (! file_exists($paginationEnglish)) { |
79 | 80 | (new Filesystem)->ensureDirectoryExists(base_path('lang/en'));
|
80 | 81 | copy(__DIR__.'/../../stubs/lang/en/pagination.php', base_path('lang/en/pagination.php'));
|
81 | 82 | }
|
|
0 commit comments