SystemController::info()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 0
dl 0
loc 9
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use App\Models\Submission\SubmissionModel;
6
use App\Models\JudgerModel;
7
use App\Http\Controllers\Controller;
8
use Auth;
9
10
class SystemController extends Controller
11
{
12
    /**
13
     * Show the System Info Page.
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 info()
18
    {
19
        $judgerModel=new JudgerModel();
20
        $judgeServer=$judgerModel->fetchServer(0);
21
        return view('system.info', [
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('system.info...rver' => $judgeServer)) returns the type Illuminate\View\View which is incompatible with the documented return type App\Http\Controllers\Response.
Loading history...
22
            'page_title' => "System Info",
23
            'site_title' => config("app.name"),
24
            'navigation' => "System",
25
            'judgeServer' => $judgeServer
26
        ]);
27
    }
28
}
29