Completed
Push — master ( 756eed...5aa9a0 )
by ARCANEDEV
03:52
created

MetasController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

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
use Arcanedev\LaravelSeo\Models\Seo;
3
4
/**
5
 * Class     MetasController
6
 *
7
 * @package  Arcanesoft\Seo\Http\Controllers\Admin
8
 * @author   ARCANEDEV <[email protected]>
9
 */
10
class MetasController extends Controller
11
{
12
    /* ------------------------------------------------------------------------------------------------
13
     |  Constructor
14
     | ------------------------------------------------------------------------------------------------
15
     */
16
    /**
17
     * MetasController constructor.
18
     */
19
    public function __construct()
20
    {
21
        parent::__construct();
22
23
        $this->setCurrentPage('seo-metas');
24
        $this->addBreadcrumbRoute('Metas', 'admin::seo.metas.index');
25
    }
26
27
    /* ------------------------------------------------------------------------------------------------
28
     |  Main Functions
29
     | ------------------------------------------------------------------------------------------------
30
     */
31
    public function index()
32
    {
33
        $this->setTitle($title = 'List of Metas');
34
        $this->addBreadcrumb($title);
35
36
        $metas = Seo::all();
37
38
        return $this->view('admin.metas.index', compact('metas'));
39
    }
40
}
41