GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 890c9c...35b399 )
by
unknown
02:03
created

Sidebar::__construct()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 17
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 4
eloc 8
nc 4
nop 1
dl 0
loc 17
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * This file is part of the O2System Framework package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @author         Steeve Andrian Salim
9
 * @copyright      Copyright (c) Steeve Andrian Salim
10
 */
11
12
// ------------------------------------------------------------------------
13
14
namespace O2System\Framework\Libraries\Ui\Admin;
15
16
// ------------------------------------------------------------------------
17
18
use O2System\Framework\Libraries\Ui\Element;
19
20
/**
21
 * Class Sidebar
22
 * @package O2System\Framework\Libraries\Ui\Admin
23
 */
24
class Sidebar extends Element
25
{
26
    /**
27
     * Sidebar::$menu
28
     *
29
     * @var \O2System\Framework\Libraries\Ui\Admin\Sidebar\Menu
30
     */
31
    public $menu;
32
33
    // ------------------------------------------------------------------------
34
35
    /**
36
     * Code::__construct
37
     *
38
     * @param array $attributes
39
     */
40
    public function __construct(array $attributes = [])
41
    {
42
        parent::__construct('div');
43
44
        if (isset($attributes[ 'id' ])) {
45
            $this->entity->setEntityName($attributes[ 'id' ]);
46
        }
47
48
        if (count($attributes)) {
49
            foreach ($attributes as $name => $value) {
50
                $this->attributes->addAttribute($name, $value);
51
            }
52
        }
53
54
        $this->menu = new Sidebar\Menu();
55
56
        $this->childNodes->push($this->menu);
57
    }
58
}