forked from eatvio/eatvio-infra
static analisys refactoryn, View types added
This commit is contained in:
@@ -3,35 +3,22 @@
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\ProductNutritionalValue;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\Contracts\View\Factory as ViewFactory;
|
||||
|
||||
class ProductNutritionalValueController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
public function index(): View|ViewFactory
|
||||
{
|
||||
return view('product_nutritional/index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create()
|
||||
public function create(): View|ViewFactory
|
||||
{
|
||||
return view('product_nutritional/create');
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show(ProductNutritionalValue $productNutritionalValue)
|
||||
public function show(ProductNutritionalValue $productNutritionalValue): View|ViewFactory
|
||||
{
|
||||
return view(
|
||||
'product_nutritional/show',
|
||||
@@ -39,22 +26,8 @@ class ProductNutritionalValueController extends Controller
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function edit(ProductNutritionalValue $productNutritionalValue)
|
||||
public function edit(ProductNutritionalValue $productNutritionalValue): View|ViewFactory
|
||||
{
|
||||
return view('product_nutritional/edit', ['productNutritionalValue' => $productNutritionalValue]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy(ProductNutritionalValue $productNutritionalValue)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user