Title::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
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
}