Completed
Push — master ( 015864...c9c930 )
by ARCANEDEV
04:45
created

SettingsController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 32
ccs 0
cts 14
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A index() 0 10 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
     * SettingsController constructor.
19
     */
20
    public function __construct()
21
    {
22
        parent::__construct();
23
24
        $this->addBreadcrumbRoute('Settings', 'admin::tracker.settings.index');
25
        $this->setCurrentPage('tracker-settings');
26
    }
27
28
    /* ------------------------------------------------------------------------------------------------
29
     |  Main Functions
30
     | ------------------------------------------------------------------------------------------------
31
     */
32
    public function index()
33
    {
34
        $this->setTitle('Settings - Tracker');
35
36
        $configs = config('arcanesoft.tracker', []);
37
38
        return $this->view('admin.settings.index', [
39
            'trackers' => Arr::get($configs, 'tracking', []),
40
        ]);
41
    }
42
}
43