SettingsController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 32
ccs 0
cts 11
cp 0
rs 10
c 1
b 0
f 0

2 Methods

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