| Conditions | 2 |
| Paths | 1 |
| Total Lines | 3 |
| Code Lines | 1 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 2 |
| Changes | 3 | ||
| Bugs | 0 | Features | 3 |
| 1 | <?php |
||
| 14 | 4 | public function testConditions(string $parameterName, $value, bool $itemType = false): string |
|
| 15 | { |
||
| 16 | 4 | return sprintf(($itemType ? '' : '!is_null($%1$s) && ').'!$%1$s instanceof \DOMDocument && (!is_string($%1$s) || (is_string($%1$s) && (empty($%1$s) || (($%1$sDoc = new \DOMDocument()) && false === $%1$sDoc->loadXML($%1$s)))))', $parameterName); |
|
| 17 | } |
||
| 24 |