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 ( b864c9...ed9166 )
by butschster
12:41
created

Text::apply()   B

Complexity

Conditions 4
Paths 4

Size

Total Lines 24
Code Lines 17

Duplication

Lines 24
Ratio 100 %

Importance

Changes 0
Metric Value
cc 4
eloc 17
nc 4
nop 5
dl 24
loc 24
rs 8.6845
c 0
b 0
f 0
1
<?php
2
3
namespace SleepingOwl\Admin\Display\Column\Filter;
4
5
class Text extends BaseColumnFilter
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $view = 'column.filter.text';
11
12
    /**
13
     * @var string
14
     */
15
    protected $placeholder;
16
17 3
    public function initialize()
18
    {
19 3
        parent::initialize();
20
21 3
        $this->setHtmlAttribute('class', 'form-control column-filter');
22 3
        $this->setHtmlAttribute('data-type', 'text');
23 3
        $this->setHtmlAttribute('type', 'text');
24 3
        $this->setHtmlAttribute('placeholder', $this->getPlaceholder());
25 3
    }
26
27
    /**
28
     * @return string
29
     */
30 4
    public function getPlaceholder()
31
    {
32 4
        return $this->placeholder;
33
    }
34
35
    /**
36
     * @param string $placeholder
37
     *
38
     * @return $this
39
     */
40 1
    public function setPlaceholder($placeholder)
41
    {
42 1
        $this->placeholder = $placeholder;
43
44 1
        return $this;
45
    }
46
47
    /**
48
     * @return array
49
     */
50
    public function toArray()
51
    {
52
        return parent::toArray() + [
53
            'placeholder' => $this->getPlaceholder(),
54
        ];
55
    }
56
}
57