| Conditions | 8 |
| Paths | 8 |
| Total Lines | 26 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public static function fromXML(DOMElement $xml): AbstractMessage |
||
| 28 | { |
||
| 29 | Assert::same( |
||
| 30 | $xml->namespaceURI, |
||
| 31 | C::NS_SAMLP, |
||
| 32 | 'Unknown namespace of SAML message: ' . var_export($xml->namespaceURI, true), |
||
| 33 | InvalidDOMElementException::class, |
||
| 34 | ); |
||
| 35 | |||
| 36 | switch ($xml->localName) { |
||
| 37 | case 'AttributeQuery': |
||
| 38 | return AttributeQuery::fromXML($xml); |
||
| 39 | case 'AuthnRequest': |
||
| 40 | return AuthnRequest::fromXML($xml); |
||
| 41 | case 'LogoutResponse': |
||
| 42 | return LogoutResponse::fromXML($xml); |
||
| 43 | case 'LogoutRequest': |
||
| 44 | return LogoutRequest::fromXML($xml); |
||
| 45 | case 'Response': |
||
| 46 | return Response::fromXML($xml); |
||
| 47 | case 'ArtifactResponse': |
||
| 48 | return ArtifactResponse::fromXML($xml); |
||
| 49 | case 'ArtifactResolve': |
||
| 50 | return ArtifactResolve::fromXML($xml); |
||
| 51 | default: |
||
| 52 | throw new InvalidDOMElementException('Unknown SAML message: ' . var_export($xml->localName, true)); |
||
| 53 | } |
||
| 56 |
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