PNotify::init()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
ccs 0
cts 7
cp 0
rs 10
cc 2
nc 2
nop 0
crap 6
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