Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed May 10, 2022
1 parent ec148db commit 0793176
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/Commands/IndexProductsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
use Carbon\Carbon;
use Exception;
use Illuminate\Support\Collection;
use TorMorten\Eventy\Facades\Eventy;
use Rapidez\Core\Commands\Traits\SwapIndexes;
use Rapidez\Core\Commands\InteractsWithElasticsearchCommand;
use Rapidez\Core\Facades\Rapidez;
use Rapidez\Core\Jobs\IndexProductJob;
use Rapidez\Core\Models\Category;
use TorMorten\Eventy\Facades\Eventy;

class IndexProductsCommand extends InteractsWithElasticsearchCommand
{
Expand Down
8 changes: 4 additions & 4 deletions src/Commands/InteractsWithElasticsearchCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Rapidez\Core\Commands;

use Illuminate\Console\Command;
use Cviebrock\LaravelElasticsearch\Manager as Elasticsearch;
use Illuminate\Console\Command;

abstract class InteractsWithElasticsearchCommand extends Command
{
Expand All @@ -20,9 +20,9 @@ public function createIndex(string $index, array $mapping = []): void
{
$this->elasticsearch->indices()->create([
'index' => $index,
'body' => [
'mappings' => $mapping
]
'body' => [
'mappings' => $mapping,
],
]);
}

Expand Down

0 comments on commit 0793176

Please sign in to comment.