Passed
Push — master ( 2c7b25...f52af3 )
by Mihail
05:14
created

Sitemap   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A actionIndex() 0 8 1
1
<?php
2
3
namespace Apps\Controller\Admin;
4
5
use Apps\Model\Front\Sitemap\EntityIndexList;
6
use Extend\Core\Arch\AdminController;
7
use Ffcms\Core\App;
8
9
class Sitemap extends AdminController
10
{
11
    const VERSION = 0.1;
12
13
    public $type = 'app';
14
15
    /**
16
     * Show index page - sitemap guide and info
17
     * @return string
18
     * @throws \Ffcms\Core\Exception\NativeException
19
     * @throws \Ffcms\Core\Exception\SyntaxException
20
     */
21
    public function actionIndex()
22
    {
23
        $model = new EntityIndexList();
24
        
25
        return App::$View->render('index', [
26
            'model' => $model
27
        ]);
28
    }
29
}