We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | protected function isSchemeValid(DOMDocument $value): bool |
||
| 46 | { |
||
| 47 | $xsd = '<?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">'; |
||
| 48 | foreach ($this->schemes as $scheme) { |
||
| 49 | $xsd .= '<xs:import namespace="' . $scheme["namespace"] . '" schemaLocation="' . $scheme["schemaLocation"] . '"/>'; |
||
| 50 | } |
||
| 51 | $xsd .= '</xs:schema>'; |
||
| 52 | return $value->schemaValidateSource($xsd); |
||
| 53 | } |
||
| 64 |