Passed
Push — master ( b831b6...96f132 )
by John
06:04 queued 21s
created

DojoController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 6
dl 0
loc 16
rs 10
c 1
b 0
f 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 7 1
1
<?php
2
namespace App\Http\Controllers;
3
4
use App\Models\Eloquent\Dojo\DojoPhase;
5
use App\Http\Controllers\Controller;
6
use Illuminate\Http\Request;
7
8
class DojoController extends Controller
9
{
10
    /**
11
     * Show the Rank Page.
12
     *
13
     * @param Request $request your web request
14
     *
15
     * @return Response
0 ignored issues
show
Bug introduced by
The type App\Http\Controllers\Response was not found. Did you mean Response? If so, make sure to prefix the type with \.
Loading history...
16
     */
17
    public function index(Request $request)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

17
    public function index(/** @scrutinizer ignore-unused */ Request $request)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
18
    {
19
        return view('dojo.index', [
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('dojo.index'...ll()->sortBy('order'))) returns the type Illuminate\View\View which is incompatible with the documented return type App\Http\Controllers\Response.
Loading history...
20
            'page_title'=>"Dojo",
21
            'site_title'=>config("app.name"),
22
            'navigation' => "Dojo",
23
            'phases' => DojoPhase::all()->sortBy('order')
24
        ]);
25
    }
26
}
27