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 — analysis-0gg0Rj ( ce41d3 )
by butschster
09:25
created

Collapsed   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 6
c 2
b 1
f 0
dl 0
loc 24
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCollapsed() 0 7 2
A setCollapsed() 0 5 1
1
<?php
2
3
namespace SleepingOwl\Admin\Traits;
4
5
trait Collapsed
6
{
7
    /**
8
     * @return null|string
9
     */
10
    public function getCollapsed()
11
    {
12
        if (is_null($this->collapsed)) {
13
            $this->collapsed = false;
0 ignored issues
show
Bug Best Practice introduced by
The property collapsed does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
14
        }
15
16
        return $this->collapsed;
17
    }
18
19
    /**
20
     * @param null|bool $collapsed
21
     *
22
     * @return $this
23
     */
24
    public function setCollapsed($collapsed)
25
    {
26
        $this->collapsed = $collapsed;
0 ignored issues
show
Bug Best Practice introduced by
The property collapsed does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
27
28
        return $this;
29
    }
30
}
31