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.
Passed
Pull Request — master (#194)
by joseph
26:34
created

MultipleValidationException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 15
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 2
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\Exception;
4
5
class MultipleValidationException extends ValidationException
6
{
7
    /**
8
     * @param ValidationException[] $validationExceptions
9
     * @param int                   $code
10
     * @param \Exception|null       $previous
11
     */
12
    public function __construct(array $validationExceptions, int $code = 0, ?\Exception $previous = null)
13
    {
14
        $message = count($validationExceptions) . ' validation exceptions: ';
15
        foreach ($validationExceptions as $validationException) {
16
            $message .= "\n\n" . $validationException->getMessage();
17
        }
18
19
        parent::__construct($message, $code, $previous);
20
    }
21
}
22