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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 38
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A initDebugIds() 0 9 2
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