SettingsController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 9
dl 0
loc 31
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 8 1
A __construct() 0 6 1
1
<?php namespace Arcanesoft\Foundation\Http\Controllers\Admin;
2
3
/**
4
 * Class     SettingsController
5
 *
6
 * @package  Arcanesoft\Foundation\Http\Controllers\Admin
7
 * @author   ARCANEDEV <[email protected]>
8
 */
9
class SettingsController extends Controller
10
{
11
    /* -----------------------------------------------------------------
12
     |  Constructor
13
     | -----------------------------------------------------------------
14
     */
15
16
    /**
17
     * SettingsController constructor.
18
     */
19
    public function __construct()
20
    {
21
        parent::__construct();
22
23
        $this->setCurrentPage('foundation-settings');
24
        $this->addBreadcrumbRoute('Settings', 'admin::foundation.settings.index');
25
    }
26
27
    /* -----------------------------------------------------------------
28
     |  Main Methods
29
     | -----------------------------------------------------------------
30
     */
31
32
    public function index()
33
    {
34
        $title = 'Generals';
35
        $this->setTitle("Settings - {$title}");
36
        $this->addBreadcrumb($title);
37
        $this->setCurrentPage('foundation-settings-generals');
38
39
        return $this->view('admin.settings.index');
40
    }
41
}
42