Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply fixes from StyleCI #381

Merged
merged 1 commit into from
Sep 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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