Skip to content

Commit

Permalink
PHP lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-cintra committed Feb 20, 2024
1 parent c546957 commit dc50526
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;

use function Laravel\Prompts\confirm;

class InstallCommand extends Command
Expand Down Expand Up @@ -43,39 +44,39 @@ private function copyBlogModuleDirectory(): void
{
$this->info('Copying Blog Module directory...');
(new Filesystem)->ensureDirectoryExists(base_path('modules'));
(new Filesystem)->copyDirectory(__DIR__ . '/../../stubs/modules/Blog', base_path('modules/Blog'));
(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/modules/Blog', base_path('modules/Blog'));
$this->info('Blog Module directory copied successfully.');
}

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

private function copyResourcesFiles(): void
{
$this->info('Copying Blog Module resources...');
(new Filesystem)->ensureDirectoryExists(resource_path('js/Pages'));
(new Filesystem)->copyDirectory(__DIR__ . '/../../stubs/resources/js/Pages', resource_path('js/Pages'));
(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/resources/js/Pages', resource_path('js/Pages'));
$this->info('Blog Module resources copied successfully.');
}

private function copyResourcesSiteFiles(): void
{
$this->info('Copying Blog Module resources-site...');
(new Filesystem)->ensureDirectoryExists(base_path('resources-site'));
(new Filesystem)->copyDirectory(__DIR__ . '/../../stubs/resources-site', base_path('resources-site'));
(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/resources-site', base_path('resources-site'));
$this->info('Blog Module resources-site copied successfully.');
}

private function copyTranslationFile(): void
{
$paginationEnglish = base_path('lang/en/pagination.php');

if(!file_exists($paginationEnglish)){
if (! file_exists($paginationEnglish)) {
(new Filesystem)->ensureDirectoryExists(base_path('lang/en'));
copy(__DIR__.'/../../stubs/lang/en/pagination.php', base_path('lang/en/pagination.php'));
}
Expand Down
2 changes: 1 addition & 1 deletion stubs/lang/en/pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
'Showing' => 'Showing',
'to' => 'to',
'of' => 'of',
'results' => 'results'
'results' => 'results',

];

0 comments on commit dc50526

Please sign in to comment.