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 ( 6873de...20cb5c )
by SignpostMarv
03:42
created

WriteTrait::SetFoo()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
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 WriteTrait
10
{
11
    public function SetFoo(string $value) : void
12
    {
13
        $this->NudgePropertyValue('Foo', $value);
0 ignored issues
show
Bug introduced by
It seems like NudgePropertyValue() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

13
        $this->/** @scrutinizer ignore-call */ 
14
               NudgePropertyValue('Foo', $value);
Loading history...
14
    }
15
16
    public function SetBar(float $value) : void
17
    {
18
        $this->NudgePropertyValue('Bar', $value);
19
    }
20
21
    public function SetBaz(int $value) : void
22
    {
23
        $this->NudgePropertyValue('Baz', $value);
24
    }
25
26
    public function SetBat(? bool $value) : void
27
    {
28
        $this->NudgePropertyValue('Bat', $value);
29
    }
30
}
31