From 70d97965091976ff94e57352de2f77ea3d6081be Mon Sep 17 00:00:00 2001 From: laravel-ide-helper Date: Sun, 29 Dec 2024 10:43:45 +0000 Subject: [PATCH] composer fix-style --- src/Console/ModelsCommand.php | 3 +-- src/IdeHelperServiceProvider.php | 2 +- .../GenerateBasicPhpdocWithEloquentHelper/Test.php | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index b9ab5855f..ec1f9993e 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -47,7 +47,6 @@ use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Arr; use Illuminate\Support\Collection; -use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Str; use Illuminate\View\Factory as ViewFactory; use phpDocumentor\Reflection\Types\ContextFactory; @@ -253,7 +252,7 @@ protected function getOptions() "Write models to {$this->filename} and adds @mixin to each model, avoiding IDE duplicate declaration warnings", ], ['write-eloquent-helper', 'E', InputOption::VALUE_NONE, - "Write Eloquent helper file to _ide_helper.php", + 'Write Eloquent helper file to _ide_helper.php', ], ['nowrite', 'N', InputOption::VALUE_NONE, 'Don\'t write to Model file'], ['reset', 'R', InputOption::VALUE_NONE, 'Remove the original phpdocs instead of appending'], diff --git a/src/IdeHelperServiceProvider.php b/src/IdeHelperServiceProvider.php index a4041966c..ec5567843 100644 --- a/src/IdeHelperServiceProvider.php +++ b/src/IdeHelperServiceProvider.php @@ -65,7 +65,7 @@ public function register() $configPath = __DIR__ . '/../config/ide-helper.php'; $this->mergeConfigFrom($configPath, 'ide-helper'); - $this->app->when([GeneratorCommand::class, MetaCommand::class, ModelsCommand::class ]) + $this->app->when([GeneratorCommand::class, MetaCommand::class, ModelsCommand::class]) ->needs(\Illuminate\Contracts\View\Factory::class) ->give(function () { return $this->createLocalViewFactory(); diff --git a/tests/Console/ModelsCommand/GenerateBasicPhpdocWithEloquentHelper/Test.php b/tests/Console/ModelsCommand/GenerateBasicPhpdocWithEloquentHelper/Test.php index 25437e6fc..b6a7fcca6 100644 --- a/tests/Console/ModelsCommand/GenerateBasicPhpdocWithEloquentHelper/Test.php +++ b/tests/Console/ModelsCommand/GenerateBasicPhpdocWithEloquentHelper/Test.php @@ -23,6 +23,6 @@ public function test(): void $this->assertStringNotContainsString('Do you want to generate a minimal helper to generate the Eloquent methods?', $tester->getDisplay()); $this->assertStringContainsString('Eloquent helper was written to _ide_helper.php', $tester->getDisplay()); -// $this->assertMatchesMockedSnapshot(); + // $this->assertMatchesMockedSnapshot(); } }