| Total Complexity | 4 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | final class KeySize extends AbstractXencElement |
||
|
|
|||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @param int $k1 |
||
| 21 | */ |
||
| 22 | public function __construct( |
||
| 23 | protected int $k1, |
||
| 24 | ) { |
||
| 25 | Assert::positiveInteger($k1, SchemaViolationException::class); |
||
| 26 | } |
||
| 27 | |||
| 28 | |||
| 29 | /** |
||
| 30 | * @return int |
||
| 31 | */ |
||
| 32 | public function getK1(): int |
||
| 33 | { |
||
| 34 | return $this->k1; |
||
| 35 | } |
||
| 36 | |||
| 37 | |||
| 38 | /** |
||
| 39 | * Convert XML into a class instance |
||
| 40 | * |
||
| 41 | * @param \DOMElement $xml The XML element we should load |
||
| 42 | * @return static |
||
| 43 | * |
||
| 44 | * @throws \SimpleSAML\XML\Exception\InvalidDOMElementException |
||
| 45 | * If the qualified name of the supplied element is wrong |
||
| 46 | */ |
||
| 47 | public static function fromXML(DOMElement $xml): static |
||
| 48 | { |
||
| 49 | Assert::same($xml->localName, static::getLocalName(), InvalidDOMElementException::class); |
||
| 50 | Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); |
||
| 51 | Assert::numeric($xml->textContent); |
||
| 52 | |||
| 53 | return new static(intval($xml->textContent)); |
||
| 54 | } |
||
| 55 | |||
| 56 | |||
| 57 | /** |
||
| 58 | * Convert this element to XML. |
||
| 59 | * |
||
| 60 | * @param \DOMElement|null $parent The element we should append this element to. |
||
| 61 | * @return \DOMElement |
||
| 62 | */ |
||
| 63 | public function toXML(?DOMElement $parent = null): DOMElement |
||
| 69 | } |
||
| 70 | } |
||
| 71 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths