visavi/rotor

View on GitHub
app/Http/Controllers/Admin/NoticeController.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method create has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function create(Request $request, Validator $validator)
    {
        if ($request->isMethod('post')) {
            $type = $request->input('type');
            $name = $request->input('name');
Severity: Minor
Found in app/Http/Controllers/Admin/NoticeController.php - About 1 hr to fix

    Method edit has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function edit(int $id, Request $request, Validator $validator)
        {
            /** @var Notice $notice */
            $notice = Notice::query()->find($id);
    
    
    Severity: Minor
    Found in app/Http/Controllers/Admin/NoticeController.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status