RankController::index()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 8
rs 10
1
<?php
2
namespace App\Http\Controllers;
3
4
use App\Models\Eloquent\Tool\SiteRank;
5
use App\Http\Controllers\Controller;
6
use Illuminate\Http\Request;
7
use Auth;
8
9
class RankController extends Controller
10
{
11
    /**
12
     * Show the Rank Page.
13
     *
14
     * @param Request $request your web request
15
     *
16
     * @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...
17
     */
18
    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

18
    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...
19
    {
20
        $rankingList=SiteRank::list(100);
21
        return view('rank.index', [
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('rank.index'...List' => $rankingList)) returns the type Illuminate\View\View which is incompatible with the documented return type App\Http\Controllers\Response.
Loading history...
22
                'page_title'=>"Rank",
23
                'site_title'=>config("app.name"),
24
                'navigation' => "Rank",
25
                'rankingList' => $rankingList
26
            ]);
27
    }
28
}
29