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.

Exception::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1
Metric Value
dl 0
loc 8
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 3
crap 1
1
<?php
2
3
declare (strict_types = 1);
4
5
namespace Noodle\Statemachine;
6
7
abstract class Exception extends \RuntimeException
8
{
9
    /**
10
     * The default exception message that will be used if none is provided
11
     *
12
     * @var
13
     */
14
    const MESSAGE = '';
15
16
    /**
17
     * Constructor
18
     *
19
     * @param string $message
20
     * @param int $code
21
     * @param \Exception $previous (Optional)
22
     */
23 8
    public function __construct($message = '', int $code = 0, \Exception $previous = null)
24
    {
25 8
        parent::__construct(
26 8
            $message ?? static::MESSAGE,
27
            $code,
28
            $previous
29
        );
30 8
    }
31
}
32