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

ActivityLogController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 21
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A index() 0 3 1
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