Completed
Push — master ( 72edcf...02e9e6 )
by ARCANEDEV
11:59
created

SettingsController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 27
rs 10

2 Methods

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