@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\QueryBuilder\Filters; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Str; |
|
| 6 | -use Illuminate\Support\Collection; |
|
| 7 | 5 | use Illuminate\Database\Eloquent\Builder; |
| 6 | +use Illuminate\Support\Collection; |
|
| 7 | +use Illuminate\Support\Str; |
|
| 8 | 8 | |
| 9 | 9 | class FiltersExact implements Filter |
| 10 | 10 | { |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\QueryBuilder; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Str; |
|
| 6 | 5 | use Illuminate\Http\Request; |
| 7 | 6 | use Illuminate\Support\Collection; |
| 8 | 7 | use Illuminate\Support\ServiceProvider; |
| 8 | +use Illuminate\Support\Str; |
|
| 9 | 9 | |
| 10 | 10 | class QueryBuilderServiceProvider extends ServiceProvider |
| 11 | 11 | { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | /** |
| 41 | 41 | * @param array|string|\Spatie\QueryBuilder\Sort $sorts |
| 42 | 42 | * |
| 43 | - * @return \Spatie\QueryBuilder\QueryBuilder |
|
| 43 | + * @return SortsQuery |
|
| 44 | 44 | */ |
| 45 | 45 | public function defaultSort($sorts): self |
| 46 | 46 | { |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | /** |
| 51 | 51 | * @param array|string|\Spatie\QueryBuilder\Sort $sorts |
| 52 | 52 | * |
| 53 | - * @return \Spatie\QueryBuilder\QueryBuilder |
|
| 53 | + * @return SortsQuery |
|
| 54 | 54 | */ |
| 55 | 55 | public function defaultSorts($sorts): self |
| 56 | 56 | { |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\QueryBuilder\Concerns; |
| 4 | 4 | |
| 5 | -use Spatie\QueryBuilder\Sort; |
|
| 6 | 5 | use Illuminate\Support\Collection; |
| 7 | 6 | use Spatie\QueryBuilder\Exceptions\InvalidSortQuery; |
| 7 | +use Spatie\QueryBuilder\Sort; |
|
| 8 | 8 | |
| 9 | 9 | trait SortsQuery |
| 10 | 10 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\QueryBuilder\Concerns; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Str; |
|
| 6 | 5 | use Illuminate\Support\Collection; |
| 6 | +use Illuminate\Support\Str; |
|
| 7 | 7 | use Spatie\QueryBuilder\Exceptions\InvalidFieldQuery; |
| 8 | 8 | |
| 9 | 9 | trait AddsFieldsToQuery |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\QueryBuilder\Concerns; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Str; |
|
| 6 | 5 | use Illuminate\Support\Collection; |
| 6 | +use Illuminate\Support\Str; |
|
| 7 | 7 | use Spatie\QueryBuilder\Exceptions\InvalidIncludeQuery; |
| 8 | 8 | |
| 9 | 9 | trait AddsIncludesToQuery |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\QueryBuilder\Concerns; |
| 4 | 4 | |
| 5 | -use Spatie\QueryBuilder\Filter; |
|
| 6 | 5 | use Illuminate\Support\Collection; |
| 7 | 6 | use Spatie\QueryBuilder\Exceptions\InvalidFilterQuery; |
| 7 | +use Spatie\QueryBuilder\Filter; |
|
| 8 | 8 | |
| 9 | 9 | trait FiltersQuery |
| 10 | 10 | { |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\QueryBuilder; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Str; |
|
| 6 | 5 | use Illuminate\Http\Request; |
| 7 | 6 | use Illuminate\Support\Collection; |
| 7 | +use Illuminate\Support\Str; |
|
| 8 | 8 | |
| 9 | 9 | class QueryBuilderRequest extends Request |
| 10 | 10 | { |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\QueryBuilder\Concerns; |
| 4 | 4 | |
| 5 | -use Spatie\QueryBuilder\Search; |
|
| 6 | 5 | use Illuminate\Support\Collection; |
| 7 | 6 | use Spatie\QueryBuilder\Exceptions\InvalidSearchQuery; |
| 7 | +use Spatie\QueryBuilder\Search; |
|
| 8 | 8 | |
| 9 | 9 | trait SearchesQuery |
| 10 | 10 | { |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\QueryBuilder\Searches; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Str; |
|
| 6 | -use Illuminate\Support\Collection; |
|
| 7 | 5 | use Illuminate\Database\Eloquent\Builder; |
| 6 | +use Illuminate\Support\Collection; |
|
| 7 | +use Illuminate\Support\Str; |
|
| 8 | 8 | |
| 9 | 9 | abstract class SearchesBase implements Search |
| 10 | 10 | { |