Title   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 2
1
<?php
2
    /**
3
     * @copyright Copyright (c) 2011 - 2014 Oleksandr Torosh (http://wezoom.net)
4
     * @author Oleksandr Torosh <[email protected]>
5
     */
6
7
namespace YonaCMS\Plugin;
8
9
use \Phalcon\Mvc\User\Plugin;
10
11
class Title extends Plugin
12
{
13
14
    public function __construct($di)
15
    {
16
        $helper = $di->get('helper');
17
        if (!$helper->meta()->get('seo-manager')) {
18
            $helper->title($helper->translate('SITE NAME'));
19
        }
20
    }
21
22
}