Skip to content

Commit

Permalink
Apply fixes from StyleCI (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored and taylorotwell committed Sep 10, 2019
1 parent b72d8a6 commit 1e22f8e
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Laravel\Scout;

use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Traits\Macroable;
use Illuminate\Pagination\LengthAwarePaginator;

class Builder
{
Expand Down
2 changes: 1 addition & 1 deletion src/Console/ImportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Laravel\Scout\Console;

use Illuminate\Console\Command;
use Laravel\Scout\Events\ModelsImported;
use Illuminate\Contracts\Events\Dispatcher;
use Laravel\Scout\Events\ModelsImported;

class ImportCommand extends Command
{
Expand Down
6 changes: 3 additions & 3 deletions src/EngineManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Laravel\Scout;

use Algolia\AlgoliaSearch\SearchClient as Algolia;
use Algolia\AlgoliaSearch\Support\UserAgent;
use Exception;
use Illuminate\Support\Manager;
use Laravel\Scout\Engines\NullEngine;
use Laravel\Scout\Engines\AlgoliaEngine;
use Algolia\AlgoliaSearch\Support\UserAgent;
use Algolia\AlgoliaSearch\SearchClient as Algolia;
use Laravel\Scout\Engines\NullEngine;

class EngineManager extends Manager
{
Expand Down
4 changes: 2 additions & 2 deletions src/Engines/AlgoliaEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Laravel\Scout\Engines;

use Laravel\Scout\Builder;
use Illuminate\Database\Eloquent\SoftDeletes;
use Algolia\AlgoliaSearch\SearchClient as Algolia;
use Illuminate\Database\Eloquent\SoftDeletes;
use Laravel\Scout\Builder;

class AlgoliaEngine extends Engine
{
Expand Down
2 changes: 1 addition & 1 deletion src/Engines/NullEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Laravel\Scout\Engines;

use Laravel\Scout\Builder;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Collection as BaseCollection;
use Laravel\Scout\Builder;

class NullEngine extends Engine
{
Expand Down
2 changes: 1 addition & 1 deletion src/Jobs/MakeSearchable.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Laravel\Scout\Jobs;

use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\SerializesModels;

class MakeSearchable implements ShouldQueue
{
Expand Down
2 changes: 1 addition & 1 deletion src/Searchable.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Laravel\Scout;

use Laravel\Scout\Jobs\MakeSearchable;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Collection as BaseCollection;
use Laravel\Scout\Jobs\MakeSearchable;

trait Searchable
{
Expand Down
2 changes: 1 addition & 1 deletion src/SearchableScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Laravel\Scout;

use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Scope;
use Laravel\Scout\Events\ModelsFlushed;
use Laravel\Scout\Events\ModelsImported;
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;

class SearchableScope implements Scope
{
Expand Down
10 changes: 5 additions & 5 deletions tests/AlgoliaEngineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace Laravel\Scout\Tests;

use stdClass;
use Mockery as m;
use Laravel\Scout\Builder;
use PHPUnit\Framework\TestCase;
use Algolia\AlgoliaSearch\SearchClient;
use Laravel\Scout\Engines\AlgoliaEngine;
use Illuminate\Database\Eloquent\Collection;
use Laravel\Scout\Builder;
use Laravel\Scout\Engines\AlgoliaEngine;
use Laravel\Scout\Tests\Fixtures\SearchableModel;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use stdClass;

class AlgoliaEngineTest extends TestCase
{
Expand Down
8 changes: 4 additions & 4 deletions tests/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Laravel\Scout\Tests;

use stdClass;
use Mockery as m;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Pagination\Paginator;
use Laravel\Scout\Builder;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use Illuminate\Pagination\Paginator;
use Illuminate\Database\Eloquent\Collection;
use stdClass;

class BuilderTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/SearchableModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Laravel\Scout\Tests\Fixtures;

use Laravel\Scout\Searchable;
use Illuminate\Database\Eloquent\Model;
use Laravel\Scout\Searchable;

class SearchableModel extends Model
{
Expand Down
4 changes: 2 additions & 2 deletions tests/MakeSearchableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Laravel\Scout\Tests;

use Illuminate\Database\Eloquent\Collection;
use Laravel\Scout\Jobs\MakeSearchable;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use Laravel\Scout\Jobs\MakeSearchable;
use Illuminate\Database\Eloquent\Collection;

class MakeSearchableTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/ModelObserverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Laravel\Scout\Tests;

use Laravel\Scout\ModelObserver;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use Laravel\Scout\ModelObserver;

class ModelObserverTest extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/SearchableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Laravel\Scout\Tests;

use Mockery as m;
use PHPUnit\Framework\TestCase;
use Illuminate\Database\Eloquent\Builder;
use Laravel\Scout\Tests\Fixtures\SearchableModel;
use Mockery as m;
use PHPUnit\Framework\TestCase;

class SearchableTest extends TestCase
{
Expand Down

0 comments on commit 1e22f8e

Please sign in to comment.