@@ -71,7 +71,7 @@ |
||
71 | 71 | /** |
72 | 72 | * Get column value from instance. |
73 | 73 | * |
74 | - * @param Collection|Model $instance |
|
74 | + * @param Model $instance |
|
75 | 75 | * @param string $name |
76 | 76 | * |
77 | 77 | * @return mixed |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Get instance move up url. |
87 | - * @return Route |
|
87 | + * @return string |
|
88 | 88 | */ |
89 | 89 | protected function moveUpUrl() |
90 | 90 | { |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | /** |
107 | 107 | * Get instance move down url. |
108 | - * @return Route |
|
108 | + * @return string |
|
109 | 109 | */ |
110 | 110 | protected function moveDownUrl() |
111 | 111 | { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | } |
123 | 123 | |
124 | 124 | /** |
125 | - * @param mixed $distinct |
|
125 | + * @param string|null $distinct |
|
126 | 126 | * |
127 | 127 | * @return $this |
128 | 128 | */ |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | /** |
166 | 166 | * Apply offset and limit to the query. |
167 | 167 | * |
168 | - * @param $query |
|
168 | + * @param Builder $query |
|
169 | 169 | */ |
170 | 170 | protected function applyOffset($query) |
171 | 171 | { |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | /** |
183 | 183 | * Apply orders to the query. |
184 | 184 | * |
185 | - * @param $query |
|
185 | + * @param Builder $query |
|
186 | 186 | */ |
187 | 187 | protected function applyOrders($query) |
188 | 188 | { |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | /** |
248 | 248 | * Convert collection to the datatables structure. |
249 | 249 | * |
250 | - * @param array|Collection $collection |
|
250 | + * @param Collection $collection |
|
251 | 251 | * @param int $totalCount |
252 | 252 | * @param int $filteredCount |
253 | 253 | * |
@@ -48,7 +48,7 @@ |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
51 | - * @return Collection|\SleepingOwl\Admin\Contracts\ActionInterface[] |
|
51 | + * @return ColumnFilterInterface[] |
|
52 | 52 | */ |
53 | 53 | public function all() |
54 | 54 | { |
@@ -22,7 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * @param array|string $scopes |
24 | 24 | * |
25 | - * @return $this |
|
25 | + * @return \SleepingOwl\Admin\Contracts\DisplayInterface |
|
26 | 26 | */ |
27 | 27 | public function set($scopes) |
28 | 28 | { |
@@ -35,7 +35,7 @@ |
||
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
38 | - * @return array |
|
38 | + * @return Collection |
|
39 | 39 | */ |
40 | 40 | public function getColumns() |
41 | 41 | { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
63 | - * @return \string[] |
|
63 | + * @return string[] |
|
64 | 64 | */ |
65 | 65 | public function getWith() |
66 | 66 | { |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | /** |
83 | 83 | * Get base query. |
84 | - * @return mixed |
|
84 | + * @return \Illuminate\Database\Eloquent\Builder |
|
85 | 85 | */ |
86 | 86 | public function getQuery() |
87 | 87 | { |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | * |
203 | 203 | * @param $id |
204 | 204 | * @param $parentId |
205 | - * @param $left |
|
205 | + * @param integer $left |
|
206 | 206 | * @param $right |
207 | 207 | */ |
208 | 208 | public function move($id, $parentId, $left, $right) |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | * Call several methods and get first result. |
292 | 292 | * |
293 | 293 | * @param $instance |
294 | - * @param $methods |
|
294 | + * @param string[] $methods |
|
295 | 295 | * |
296 | 296 | * @return mixed |
297 | 297 | * @throws Exception |
@@ -311,9 +311,9 @@ discard block |
||
311 | 311 | * |
312 | 312 | * @param $root |
313 | 313 | * @param $parentId |
314 | - * @param $left |
|
314 | + * @param integer $left |
|
315 | 315 | * |
316 | - * @return mixed |
|
316 | + * @return integer |
|
317 | 317 | */ |
318 | 318 | protected function recursiveReorder($root, $parentId, $left) |
319 | 319 | { |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | * Recursive reoder simple tree type. |
333 | 333 | * |
334 | 334 | * @param $data |
335 | - * @param $parentId |
|
335 | + * @param string|null $parentId |
|
336 | 336 | */ |
337 | 337 | protected function recursiveReorderSimple($data, $parentId) |
338 | 338 | { |
@@ -354,9 +354,9 @@ discard block |
||
354 | 354 | * Get children for simple tree type structure. |
355 | 355 | * |
356 | 356 | * @param $collection |
357 | - * @param $id |
|
357 | + * @param string|null $id |
|
358 | 358 | * |
359 | - * @return static |
|
359 | + * @return Collection |
|
360 | 360 | */ |
361 | 361 | protected function getChildren($collection, $id) |
362 | 362 | { |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | |
377 | 377 | /** |
378 | 378 | * Create simple tree type structure. |
379 | - * @return static |
|
379 | + * @return Collection |
|
380 | 380 | */ |
381 | 381 | protected function createSimpleTree() |
382 | 382 | { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | /** |
47 | 47 | * Move model in the $destination. |
48 | 48 | * |
49 | - * @param $destination -1 (move down) or 1 (move up) |
|
49 | + * @param integer $destination -1 (move down) or 1 (move up) |
|
50 | 50 | */ |
51 | 51 | protected function move($destination) |
52 | 52 | { |