PNotify   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 20
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 7 2
1
<?php
2
/**
3
 * HiPanel core package
4
 *
5
 * @link      https://hipanel.com/
6
 * @package   hipanel-core
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2014-2019, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hipanel\widgets;
12
13
/**
14
 * {@inheritdoc}
15
 */
16
class PNotify extends \hiqdev\pnotify\PNotify
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public $clientOptions = [
22
        'hide' => true,
23
        'buttons' => [
24
            'sticker' => false,
25
        ],
26
    ];
27
28
    public function init()
29
    {
30
        parent::init();
31
        if (!isset($this->clientOptions['styling'])) {
32
            $this->clientOptions['styling'] = 'bootstrap3';
33
        }
34
    }
35
}
36