Completed
Push — master ( 4f66f6...00b628 )
by
unknown
02:05
created
src/QueryBuilder.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
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\Exceptions\InvalidSortQuery;
9 8
 use Spatie\QueryBuilder\Exceptions\InvalidFilterQuery;
10 9
 use Spatie\QueryBuilder\Exceptions\InvalidIncludeQuery;
10
+use Spatie\QueryBuilder\Exceptions\InvalidSortQuery;
11 11
 
12 12
 class QueryBuilder extends Builder
13 13
 {
Please login to merge, or discard this patch.
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -65,6 +65,9 @@  discard block
 block discarded – undo
65 65
         $this->select(explode(',', $field));
66 66
     }
67 67
 
68
+    /**
69
+     * @param string $relation
70
+     */
68 71
     protected function getFieldsForRelation($relation)
69 72
     {
70 73
         $fields = $this->fields->get($relation);
@@ -142,6 +145,9 @@  discard block
 block discarded – undo
142 145
         return $this;
143 146
     }
144 147
 
148
+    /**
149
+     * @param string $sorts
150
+     */
145 151
     public function allowedSorts($sorts): self
146 152
     {
147 153
         $sorts = is_array($sorts) ? $sorts : func_get_args();
Please login to merge, or discard this patch.