Completed
Push — master ( 6e8adf...c24137 )
by
unknown
27s
created

ActivityLogController::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use App\Http\Controllers\Controller;
6
use App\DataTables\ActivityLogDataTable;
7
8
class ActivityLogController extends Controller
9
{
10
    /**
11
     * Create a new controller instance.
12
     *
13
     * @return void
14
     */
15
    public function __construct()
16
    {
17
        $this->middleware('auth');
18
    }
19
20
    /**
21
     * Display index page and process dataTable ajax request.
22
     *
23
     * @param ActivityLogDataTable $dataTable
24
     * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View
25
     */
26
    public function index(ActivityLogDataTable $dataTable)
27
    {
28
        return $dataTable->render('activitylog.index');
0 ignored issues
show
Bug Best Practice introduced by
The expression return $dataTable->render('activitylog.index') also could return the type callable which is incompatible with the documented return type Illuminate\Http\JsonResponse|Illuminate\View\View.
Loading history...
29
    }
30
31
}
32