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.

Checkbox   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 15
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A prepareValue() 0 3 1
1
<?php
2
3
namespace SleepingOwl\Admin\Form\Element;
4
5
class Checkbox extends NamedFormElement
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $view = 'form.element.checkbox';
11
12
    /**
13
     * @param mixed $value
14
     *
15
     * @return mixed
16
     */
17
    public function prepareValue($value)
18
    {
19
        return parent::prepareValue((bool) $value);
20
    }
21
}
22