SettingsController::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
ccs 0
cts 6
cp 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
crap 2
1
<?php namespace Arcanesoft\Tracker\Http\Controllers\Admin;
2
3
use Illuminate\Support\Arr;
4
5
/**
6
 * Class     SettingsController
7
 *
8
 * @package  Arcanesoft\Tracker\Http\Controllers\Admin
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class SettingsController extends Controller
12
{
13
    /* -----------------------------------------------------------------
14
     |  Constructor
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * SettingsController constructor.
20
     */
21
    public function __construct()
22
    {
23
        parent::__construct();
24
25
        $this->setCurrentPage('tracker-settings');
26
        $this->addBreadcrumbRoute(trans('tracker::settings.titles.settings'), 'admin::tracker.settings.index');
27
    }
28
29
    /* -----------------------------------------------------------------
30
     |  Main Methods
31
     | -----------------------------------------------------------------
32
     */
33
34
    public function index()
35
    {
36
        $trackers = Arr::get(config('arcanesoft.tracker', []), 'tracking', []);
37
38
//        $this->setTitle('Settings - Tracker');
39
40
        return $this->view('admin.settings.index', compact('trackers'));
41
    }
42
}
43