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

Sitemap::actionIndex()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 8
rs 9.4285
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
}