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 ( a48bd8...83d092 )
by joseph
16:18 queued 18s
created

DebugEntityDataObjectIds::initDebugIds()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
cc 2
eloc 6
nc 2
nop 1
dl 0
loc 9
ccs 0
cts 9
cp 0
crap 6
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
4
namespace EdmondsCommerce\DoctrineStaticMeta\Entity\Debug;
5
6
7
trait DebugEntityDataObjectIds
8
{
9
    /**
10
     * The spl_object_hash
11
     *
12
     * @var string
13
     */
14
    private $debugObjectHash;
15
16
    /**
17
     * The UUID as a string, only for debugging purposes
18
     *
19
     * @var string
20
     */
21
    private $debugIdAsString;
22
23
    /**
24
     * A rough approximation of an auto incrementing ID - only for debugging purposes, no functional purpose
25
     *
26
     * @var int
27
     */
28
    private $debugCreationIncrement;
29
30
    /**
31
     * When creating a new Entity, we track the increment to help with identifying Entities
32
     *
33
     * @param bool $created
34
     * @SuppressWarnings(PHPMD.BooleanArgumentFlag)
35
     */
36
    private function initDebugIds(bool $created = false)
37
    {
38
        $this->debugIdAsString = (string)$this->id;
39
        $this->debugObjectHash = spl_object_hash($this);
40
        if (false === $created) {
41
            return;
42
        }
43
        static $increment = 0;
44
        $this->debugCreationIncrement = ++$increment;
45
    }
46
}
47