Passed
Push — master ( cacb65...2a19cd )
by John
03:23
created

StatusController::index()   A

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\SubmissionModel;
6
use App\Http\Controllers\Controller;
7
use Auth;
8
9
class StatusController extends Controller
10
{
11
    /**
12
     * Show the Status Page.
13
     *
14
     * @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...
15
     */
16
    public function index()
17
    {
18
        $submissionModel=new SubmissionModel();
19
        $records=$submissionModel->getRecord();
20
        return view('status.index', [
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('status.inde...'records' => $records)) returns the type Illuminate\View\View which is incompatible with the documented return type App\Http\Controllers\Response.
Loading history...
21
            'page_title' => "Status",
22
            'site_title' => "NOJ",
23
            'navigation' => "Status",
24
            'records' => $records
25
        ]);
26
    }
27
}
28