Completed
Push — master ( 0dbe46...28a804 )
by ARCANEDEV
03:27
created

SettingsController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

2 Methods

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