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.

TransitionPatternMismatch::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 6
nc 1
nop 2
crap 1
1
<?php
2
3
declare (strict_types = 1);
4
5
namespace Noodle\Transition\Exception;
6
7
use Noodle\Statemachine\Exception;
8
9
class TransitionPatternMismatch extends Exception
10
{
11
    /**
12
     * Prepares exception message that includes the mismatched pattern and transition string
13
     *
14
     * @param string $transition
15
     * @param string $pattern
16
     */
17 1
    public function __construct(string $transition, string $pattern)
18
    {
19 1
        parent::__construct(
20
            sprintf(
21 1
                'The provided transition string "%s" does not match the configured pattern: "%s"',
22
                $transition,
23
                $pattern
24
            )
25
        );
26 1
    }
27
}
28