app/Http/Controllers/Admin/NoticeController.php
Method create
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create(Request $request, Validator $validator)
{
if ($request->isMethod('post')) {
$type = $request->input('type');
$name = $request->input('name');
Method edit
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function edit(int $id, Request $request, Validator $validator)
{
/** @var Notice $notice */
$notice = Notice::query()->find($id);