Skip to content

Commit

Permalink
chore: sync laravel/laravel skeleton
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Feb 3, 2025
1 parent 006dcfe commit 62e9d28
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
12 changes: 6 additions & 6 deletions bin/sync
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ transform([
'User::factory()->create' => 'UserFactory::new()->create',
], fn ($changes) => $files->replaceInFile(array_keys($changes), array_values($changes), "{$workingPath}/src/Console/stubs/database/seeders/DatabaseSeeder.php"));

// transform([
// line('Artisan::command(\'inspire\', function () {
transform([
line('Artisan::command(\'inspire\', function () {
$this->comment(Inspiring::quote());
})->purpose(\'Display an inspiring quote\');') => line('// Artisan::command(\'inspire\', function () {
// $this->comment(Inspiring::quote());
// })->purpose(\'Display an inspiring quote\');') => line('// Artisan::command(\'inspire\', function () {
// // $this->comment(Inspiring::quote());
// // })->purpose(\'Display an inspiring quote\');'),
// ], static fn ($changes) => $files->replaceInFile(array_keys($changes), array_values($changes), "{$workingPath}/src/Console/stubs/routes/console.php"));
// })->purpose(\'Display an inspiring quote\');'),
], static fn ($changes) => $files->replaceInFile(array_keys($changes), array_values($changes), "{$workingPath}/src/Console/stubs/routes/console.php"));

collect([
'Http/Controllers/ProfileController.php',
Expand Down
6 changes: 1 addition & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
parameters:
ignoreErrors:
-
message: "#^Undefined variable\\: \\$this$#"
count: 1
path: src/Console/stubs/routes/console.php
ignoreErrors: []
6 changes: 3 additions & 3 deletions src/Console/stubs/routes/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;

Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');
// Artisan::command('inspire', function () {
// $this->comment(Inspiring::quote());
// })->purpose('Display an inspiring quote');

0 comments on commit 62e9d28

Please sign in to comment.