@@ -19,22 +19,16 @@ trait InteractsWithQueryBuilder
1919{
2020 /**
2121 * Stores the query object
22- *
23- * @var Builder|ScoutBuilder|Closure|null
2422 */
2523 protected Builder |ScoutBuilder |null |Closure $ query = null ;
2624
2725 /**
2826 * Stores the data comming from the client side
29- *
30- * @var RequestPayload
3127 */
3228 protected RequestPayload $ data ;
3329
3430 /**
3531 * The actual query builder instance provided by the user.
36- *
37- * @return mixed
3832 */
3933 public function query (): mixed
4034 {
@@ -53,8 +47,6 @@ protected function getQuery()
5347
5448 /**
5549 * Boot the query and save it on the instance.
56- *
57- * @return void
5850 */
5951 public function setupQuery (): void
6052 {
@@ -81,9 +73,6 @@ public function withQuery(mixed $query): static
8173
8274 /**
8375 * Attempts to resolve the query from a string, class or a model
84- *
85- * @param mixed|null $queryOrModel
86- * @return Builder
8776 */
8877 protected function resolveQueryOrModel (mixed $ queryOrModel = null ): Builder
8978 {
@@ -107,10 +96,6 @@ protected function resolveQueryOrModel(mixed $queryOrModel = null): Builder
10796
10897 /**
10998 * Apply the user provided filters using the follow method
110- *
111- * @param Builder $query
112- * @param RequestPayload $payload
113- * @return Builder
11499 */
115100 protected function applyQueryFilters (Builder $ query , RequestPayload $ payload ): Builder
116101 {
@@ -127,10 +112,6 @@ protected function applyQueryFilters(Builder $query, RequestPayload $payload): B
127112
128113 /**
129114 * Apply the sorting using the following method
130- *
131- * @param Builder $query
132- * @param RequestPayload $payload
133- * @return Builder
134115 */
135116 protected function applyQuerySorting (Builder $ query , RequestPayload $ payload ): Builder
136117 {
@@ -146,10 +127,6 @@ protected function applyQuerySorting(Builder $query, RequestPayload $payload): B
146127
147128 /**
148129 * Apply the search using the following method, supporting scout if the class uses scout.
149- *
150- * @param Builder $query
151- * @param RequestPayload $payload
152- * @return Builder
153130 */
154131 protected function applySearch (Builder $ query , RequestPayload $ payload ): Builder
155132 {
@@ -181,9 +158,6 @@ protected function applySearch(Builder $query, RequestPayload $payload): Builder
181158 /**
182159 * Transform the Laravel pagination with Vanilla Datatable Pagination structure
183160 * The ideia was origonally taken from Reink at PingCRM Demo
184- *
185- * @param LengthAwarePaginator $paginator
186- * @return array
187161 */
188162 protected function transformPagination (LengthAwarePaginator $ paginator ): array
189163 {
@@ -270,7 +244,6 @@ protected function transformPagination(LengthAwarePaginator $paginator): array
270244 /**
271245 * Process an action once is dispatched from the frontend to the backend
272246 *
273- * @return void
274247 *
275248 * @throws Exception
276249 */
@@ -290,8 +263,6 @@ protected function dispatchAction(): void
290263 * otherwise we can inject the user provided query into the table.
291264 *
292265 *
293- * @param Builder|null $queryOrModel
294- * @return array|Collection
295266 *
296267 * @throws Exception
297268 */
0 commit comments