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   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 19
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 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