@@ -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,10 +2,10 @@ |
||
| 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\ColumnNameSanitizer; |
| 8 | 7 | use Spatie\QueryBuilder\Exceptions\InvalidSortQuery; |
| 8 | +use Spatie\QueryBuilder\Sort; |
|
| 9 | 9 | |
| 10 | 10 | trait SortsQuery |
| 11 | 11 | { |
@@ -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,14 +2,14 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\QueryBuilder; |
| 4 | 4 | |
| 5 | +use Illuminate\Database\Eloquent\Builder; |
|
| 5 | 6 | use Illuminate\Http\Request; |
| 6 | 7 | use Illuminate\Support\Collection; |
| 7 | -use Illuminate\Database\Eloquent\Builder; |
|
| 8 | -use Spatie\QueryBuilder\Concerns\SortsQuery; |
|
| 9 | -use Spatie\QueryBuilder\Concerns\FiltersQuery; |
|
| 10 | 8 | use Spatie\QueryBuilder\Concerns\AddsFieldsToQuery; |
| 11 | 9 | use Spatie\QueryBuilder\Concerns\AddsIncludesToQuery; |
| 12 | 10 | use Spatie\QueryBuilder\Concerns\AppendsAttributesToResults; |
| 11 | +use Spatie\QueryBuilder\Concerns\FiltersQuery; |
|
| 12 | +use Spatie\QueryBuilder\Concerns\SortsQuery; |
|
| 13 | 13 | |
| 14 | 14 | class QueryBuilder extends Builder |
| 15 | 15 | { |
@@ -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,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\ColumnNameSanitizer; |
| 8 | 8 | use Spatie\QueryBuilder\Exceptions\InvalidFieldQuery; |
| 9 | 9 | |