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 ( 20cb5c...21b679 )
by SignpostMarv
03:59
created

ReadTrait::GetBar()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 4
nc 2
nop 0
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
1
<?php
2
/**
3
* @author SignpostMarv
4
*/
5
declare(strict_types=1);
6
7
namespace SignpostMarv\DaftObject;
8
9
trait ReadTrait
10
{
11
    public function GetFoo() : string
12
    {
13
        return $this->RetrievePropertyValueFromData('Foo');
14
    }
15
16
    public function GetBar() : float
17
    {
18
        $out = $this->RetrievePropertyValueFromData('Bar');
19
20
        if (is_string($out) === true && is_numeric($out)) {
21
            return (float) $out;
22
        }
23
24
        return $out;
25
    }
26
27
    public function GetBaz() : int
28
    {
29
        $out = $this->RetrievePropertyValueFromData('Baz');
30
31
        if (is_string($out) === true && is_numeric($out)) {
32
            return (int) $out;
33
        }
34
35
        return $out;
36
    }
37
38
    public function GetBat() : ? bool
39
    {
40
        $out = $this->RetrievePropertyValueFromData('Bat');
41
42
        if (is_string($out) === true && is_numeric($out)) {
43
            return (bool) ((int) $out);
44
        }
45
46
        return $out;
47
    }
48
}
49