forked from eatvio/eatvio-infra
static analisys refactoryn, View types added
This commit is contained in:
@@ -4,42 +4,12 @@ namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Diary;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\View\View;
|
||||
|
||||
class ConsultantDiaryCommentController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function store(Request $request)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show(Diary $diary)
|
||||
public function show(Diary $diary): View
|
||||
{
|
||||
$data = [
|
||||
'daysCount' => 1,
|
||||
@@ -49,12 +19,7 @@ class ConsultantDiaryCommentController extends Controller
|
||||
return view('diary.consultant_comments', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function edit(Diary $diary)
|
||||
public function edit(Diary $diary): View
|
||||
{
|
||||
$curMeals = $diary->meals()->orderBy('type')->get();
|
||||
$typeNames = [
|
||||
@@ -75,24 +40,4 @@ class ConsultantDiaryCommentController extends Controller
|
||||
|
||||
return view('diary.consultant_comments_edit', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update(Request $request, Diary $diary)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param \App\Models\Diary $consultantDiaryComment
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy(Diary $diary)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user