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.

InvalidVOArgumentException::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 4
c 1
b 0
f 0
nc 2
nop 4
dl 0
loc 7
ccs 5
cts 5
cp 1
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
6
namespace DBUnt1tled\VO\Exception;
7
8
use Throwable;
9
10
class InvalidVOArgumentException extends \InvalidArgumentException implements ExceptionVO
11
{
12
    /** @var mixed */
13
    private $object;
14
15
    /**
16
     * InvalidVOArgumentException constructor.
17
     * @param string $message
18
     * @param mixed $object
19
     * @param int $code
20
     * @param Throwable|null $previous
21
     */
22 19
    public function __construct(string $message = '', $object = null, int $code = 0, Throwable $previous = null)
23
    {
24 19
        if (!$message) {
25 1
            throw new $this('Unknown '.\get_class($this));
26
        }
27 19
        $this->object = $object;
28 19
        parent::__construct($message, $code, $previous);
29 19
    }
30
31
    /**
32
     * @return string
33
     */
34 2
    public function __toString(): string
35
    {
36 2
        if ($this->object !== null) {
37 2
            ob_start();
38 2
            echo '<pre>';
39 2
            print_r($this->object);
40 2
            echo '</pre>';
41 2
            $this->message = $this->message."\nDebug Info: ".ob_get_clean();
42
        }
43 2
        return get_class($this)." '{$this->message}'\n in {$this->file}({$this->line})\n{$this->getTraceAsString()}";
44
    }
45
}
46