Fix return types for Taxrate controllers and remove unused classes for Payment controller.
This commit is contained in:
@@ -3,13 +3,14 @@
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Taxrate;
|
||||
use Illuminate\Contracts\View\View;
|
||||
|
||||
class TaxrateController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index()
|
||||
public function index(): View
|
||||
{
|
||||
return view('taxrate.index');
|
||||
}
|
||||
@@ -17,7 +18,7 @@ class TaxrateController extends Controller
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
public function create(): View
|
||||
{
|
||||
return view('taxrate.create');
|
||||
}
|
||||
@@ -25,7 +26,7 @@ class TaxrateController extends Controller
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit(Taxrate $taxrate)
|
||||
public function edit(Taxrate $taxrate): View
|
||||
{
|
||||
return view('taxrate.edit', ['taxrate' => $taxrate]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user