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 — master ( f91a4c...f91a4c )
by Dave
39:26 queued 34:22
created

Links::getView()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace SleepingOwl\Admin\Display\Extension;
4
5
use KodiComponents\Support\HtmlAttributes;
6
use SleepingOwl\Admin\Contracts\Display\Placable;
7
8
class Links extends Extension implements Placable
9
{
10
    use HtmlAttributes;
11
12
    /**
13
     * @var string|\Illuminate\View\View
14
     */
15
    protected $view = 'display.extensions.links';
16
17
    /**
18
     * @var string
19
     */
20
    protected $placement = 'before.panel';
21
22
    /**
23
     * @var array
24
     */
25
    protected $links = [];
26
27
    /**
28
     * @param array $links
29
     */
30
    public function set($links)
31
    {
32
        $this->links = $links;
33
    }
34
35
    public function getView()
36
    {
37
        return $this->view;
38
    }
39
40
    public function getPlacement()
41
    {
42
        return $this->placement;
43
    }
44
45
    public function getLinks()
46
    {
47
        return $this->links;
48
    }
49
50
    public function setLinks(array $links)
51
    {
52
        $this->links = $links;
53
    }
54
55
    /**
56
     * Get the instance as an array.
57
     *
58
     * @return array
59
     */
60
    public function toArray()
61
    {
62
        return [
63
            'links' => $this->getLinks(),
64
            'attributes' => $this->htmlAttributesToString(),
65
        ];
66
    }
67
}
68