Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mozex committed Aug 15, 2024
1 parent d7350c8 commit e02cbad
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/Commands/Concerns/FindsSearchableModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function getSearchableModels(): Collection
*/
protected function getSpecifiedFiles(): Finder
{
return (new Finder())->in(config('scout-bulk-actions.model_directories'))->files();
return (new Finder)->in(config('scout-bulk-actions.model_directories'))->files();
}

/**
Expand Down
24 changes: 12 additions & 12 deletions tests/Commands/RefreshCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
})->expectExceptionMessage('Progress bar must have at least one item.');

it('will call flush all and import all command', function () {
$refreshCommand = new RefreshCommand();
$flushAllCommand = new FlushAllCommand();
$importAllCommand = new ImportAllCommand();
$refreshCommand = new RefreshCommand;
$flushAllCommand = new FlushAllCommand;
$importAllCommand = new ImportAllCommand;

$console = Mockery::mock(ConsoleApplication::class)->makePartial();
$console->__construct();
Expand Down Expand Up @@ -81,9 +81,9 @@
});

it('will call flush and import command if model is specified', function () {
$refreshCommand = new RefreshCommand();
$flushCommand = new FlushCommand();
$importCommand = new ImportCommand();
$refreshCommand = new RefreshCommand;
$flushCommand = new FlushCommand;
$importCommand = new ImportCommand;

$console = Mockery::mock(ConsoleApplication::class)->makePartial();
$console->__construct();
Expand Down Expand Up @@ -123,9 +123,9 @@
});

it('will not call import all if flush all fails', function () {
$refreshCommand = new RefreshCommand();
$flushAllCommand = new FlushAllCommand();
$importAllCommand = new ImportAllCommand();
$refreshCommand = new RefreshCommand;
$flushAllCommand = new FlushAllCommand;
$importAllCommand = new ImportAllCommand;

$console = Mockery::mock(ConsoleApplication::class)->makePartial();
$console->__construct();
Expand Down Expand Up @@ -163,9 +163,9 @@
});

it('will not call import if flush fails while model is specified', function () {
$refreshCommand = new RefreshCommand();
$flushCommand = new FlushCommand();
$importCommand = new ImportCommand();
$refreshCommand = new RefreshCommand;
$flushCommand = new FlushCommand;
$importCommand = new ImportCommand;

$console = Mockery::mock(ConsoleApplication::class)->makePartial();
$console->__construct();
Expand Down
4 changes: 1 addition & 3 deletions tests/Fixtures/NonSearchableModels/NonSearchableModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Illuminate\Database\Eloquent\Model;

class NonSearchableModel extends Model
{
}
class NonSearchableModel extends Model {}
4 changes: 1 addition & 3 deletions workbench/app/Providers/WorkbenchServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Illuminate\Support\ServiceProvider;

class WorkbenchServiceProvider extends ServiceProvider
{
}
class WorkbenchServiceProvider extends ServiceProvider {}

0 comments on commit e02cbad

Please sign in to comment.