Skip to content

Commit 1577c43

Browse files
committed
Code style fixes.
1 parent b518603 commit 1577c43

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Console/InstallCommand.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,39 +45,39 @@ private function copyBlogModuleDirectory(): void
4545
{
4646
$this->info('Copying Blog Module directory...');
4747
(new Filesystem)->ensureDirectoryExists(base_path('modules'));
48-
(new Filesystem)->copyDirectory(__DIR__ . '/../../stubs/modules/Blog', base_path('modules/Blog'));
48+
(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/modules/Blog', base_path('modules/Blog'));
4949
$this->info('Blog Module directory copied successfully.');
5050
}
5151

5252
private function copyResourcesComponentsFiles(): void
5353
{
5454
$this->info('Copying Blog Module components...');
5555
(new Filesystem)->ensureDirectoryExists(resource_path('js/Components/Modules/Blog'));
56-
(new Filesystem)->copyDirectory(__DIR__ . '/../../stubs/resources/js/Components/Modules/Blog', resource_path('js/Components/Modules/Blog'));
56+
(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/resources/js/Components/Modules/Blog', resource_path('js/Components/Modules/Blog'));
5757
$this->info('Blog Module components copied successfully.');
5858
}
5959

6060
private function copyBlogSeederImages(): void
6161
{
6262
$this->info('Copying Blog Seeder images...');
6363
(new Filesystem)->ensureDirectoryExists(resource_path('images/blog'));
64-
(new Filesystem)->copyDirectory(__DIR__ . '/../../stubs/resources/images/blog', resource_path('images/blog'));
64+
(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/resources/images/blog', resource_path('images/blog'));
6565
$this->info('Blog Module Seeder images copied successfully.');
6666
}
6767

6868
private function copyResourcesFiles(): void
6969
{
7070
$this->info('Copying Blog Module resources...');
7171
(new Filesystem)->ensureDirectoryExists(resource_path('js/Pages'));
72-
(new Filesystem)->copyDirectory(__DIR__ . '/../../stubs/resources/js/Pages', resource_path('js/Pages'));
72+
(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/resources/js/Pages', resource_path('js/Pages'));
7373
$this->info('Blog Module resources copied successfully.');
7474
}
7575

7676
private function copyResourcesSiteFiles(): void
7777
{
7878
$this->info('Copying Blog Module resources-site...');
7979
(new Filesystem)->ensureDirectoryExists(base_path('resources-site'));
80-
(new Filesystem)->copyDirectory(__DIR__ . '/../../stubs/resources-site', base_path('resources-site'));
80+
(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/resources-site', base_path('resources-site'));
8181
$this->info('Blog Module resources-site copied successfully.');
8282
}
8383

@@ -87,7 +87,7 @@ private function copyTranslationFile(): void
8787

8888
if (! file_exists($paginationEnglish)) {
8989
(new Filesystem)->ensureDirectoryExists(base_path('lang/en'));
90-
copy(__DIR__ . '/../../stubs/lang/en/pagination.php', base_path('lang/en/pagination.php'));
90+
copy(__DIR__.'/../../stubs/lang/en/pagination.php', base_path('lang/en/pagination.php'));
9191
}
9292
}
9393
}

stubs/modules/Blog/Database/Seeders/BlogSeeder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
use Modules\Blog\Models\Author;
1111
use Modules\Blog\Models\Category;
1212
use Modules\Blog\Models\Post;
13+
1314
use function Laravel\Prompts\info;
1415

1516
class BlogSeeder extends Seeder
1617
{
17-
1818
//These images are available at: resources/images/blog . Just copy them to storage/app/public/blog as mentioned in the README.md
1919

2020
private $blogCategoriesImages = [
@@ -82,19 +82,19 @@ public function run(): void
8282

8383
info('Creating blog categories...');
8484
Category::factory()->count(12)
85-
->sequence(fn(Sequence $sequence) => ['image' => $this->blogCategoriesImages[$sequence->index]])
85+
->sequence(fn (Sequence $sequence) => ['image' => $this->blogCategoriesImages[$sequence->index]])
8686
->create();
8787
info('Blog categories created.');
8888

8989
info('Creating blog authors...');
9090
Author::factory()->count(12)
91-
->sequence(fn(Sequence $sequence) => ['image' => $this->blogAuthorsImages[$sequence->index]])
91+
->sequence(fn (Sequence $sequence) => ['image' => $this->blogAuthorsImages[$sequence->index]])
9292
->create();
9393
info('Blog authors created.');
9494

9595
info('Creating blog posts...');
9696
Post::factory()->count(24)
97-
->sequence(fn(Sequence $sequence) => ['image' => $this->blogPostsImages[$sequence->index]])
97+
->sequence(fn (Sequence $sequence) => ['image' => $this->blogPostsImages[$sequence->index]])
9898
->create();
9999
info('Blog posts created.');
100100

0 commit comments

Comments
 (0)