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.
Completed
Push — bs4 ( 061bb9...0953c1 )
by
unknown
18s queued 13s
created

Body::initialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
namespace SleepingOwl\Admin\Form\Card;
4
5
use SleepingOwl\Admin\Form\FormElements;
6
use KodiComponents\Support\HtmlAttributes;
7
use SleepingOwl\Admin\Contracts\Form\PanelInterface;
8
9
class Body extends FormElements implements PanelInterface
10
{
11
    use HtmlAttributes;
12
13
    /**
14
     * @var string
15
     */
16
    protected $view = 'form.panel.element';
17
18
    /**
19
     * @var string
20
     */
21
    protected $class = 'card-body';
22
23
    public function initialize()
24
    {
25
        parent::initialize();
26
27
        $this->setHtmlAttribute('class', $this->class);
28
    }
29
30
    /**
31
     * @return array
32
     */
33
    public function toArray()
34
    {
35
        return parent::toArray() + [
36
                'elements' => $this->getElements()->onlyVisible(),
37
                'attributes' => $this->htmlAttributesToString(),
38
            ];
39
    }
40
}
41