@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | * |
267 | 267 | * @param $id |
268 | 268 | * |
269 | - * @return mixed |
|
269 | + * @return \Illuminate\Http\RedirectResponse |
|
270 | 270 | */ |
271 | 271 | public function destroy($id) |
272 | 272 | { |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | * |
377 | 377 | * @param array $data |
378 | 378 | * |
379 | - * @return mixed |
|
379 | + * @return Response|null |
|
380 | 380 | */ |
381 | 381 | protected function prepare($data = []) |
382 | 382 | { |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | /** |
437 | 437 | * Call submitted callback. |
438 | 438 | * |
439 | - * @return mixed |
|
439 | + * @return Response|null |
|
440 | 440 | */ |
441 | 441 | protected function callSubmitted() |
442 | 442 | { |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | /** |
451 | 451 | * Call saving callback. |
452 | 452 | * |
453 | - * @return mixed |
|
453 | + * @return Response|null |
|
454 | 454 | */ |
455 | 455 | protected function callSaving() |
456 | 456 | { |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | /** |
465 | 465 | * Callback after saving a Model. |
466 | 466 | * |
467 | - * @return mixed|null |
|
467 | + * @return Response|null |
|
468 | 468 | */ |
469 | 469 | protected function callSaved() |
470 | 470 | { |
@@ -558,7 +558,7 @@ discard block |
||
558 | 558 | /** |
559 | 559 | * Get RedirectResponse after update. |
560 | 560 | * |
561 | - * @param mixed $key |
|
561 | + * @param integer $key |
|
562 | 562 | * |
563 | 563 | * @return \Illuminate\Http\RedirectResponse |
564 | 564 | */ |
@@ -39,8 +39,9 @@ |
||
39 | 39 | |
40 | 40 | $status = $this->form()->destroy($id); |
41 | 41 | |
42 | - if ($type == 'non-ajax') |
|
43 | - return $status; |
|
42 | + if ($type == 'non-ajax') { |
|
43 | + return $status; |
|
44 | + } |
|
44 | 45 | |
45 | 46 | if ($status) { |
46 | 47 | $data = [ |