Passed
Pull Request — master (#24)
by Tim
01:58
created

NoSignatureFoundException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 8
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 2
1
<?php
2
3
namespace SimpleSAML\XMLSecurity\Exception;
4
5
/**
6
 * Class NoSignatureFoundException
7
 *
8
 * This exception is thrown when we can't find a signature in a given DOM document or element.
9
 *
10
 * @package SimpleSAML\XMLSecurity\Exception
11
 */
12
class NoSignatureFoundException extends SignatureVerificationException
0 ignored issues
show
Bug introduced by
The type SimpleSAML\XMLSecurity\E...reVerificationException was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
13
{
14
    /**
15
     * @param string|null $message
16
     */
17
    public function __construct(?string $message = null)
18
    {
19
        parent::__construct($message ?: 'There is no signature in the document or element.');
20
    }
21
}
22