| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 277 | 49 | public static function getDocType(): string |
|
| 278 | { |
||
| 279 | 49 | $docType = "<!DOCTYPE html [\n"; |
|
| 280 | |||
| 281 | 49 | foreach (self::$htmlEntities as $entity => $hex) { |
|
| 282 | 49 | $docType .= \sprintf('<!ENTITY %s "&#%s;">', $entity, $hex); |
|
| 283 | } |
||
| 284 | |||
| 285 | 49 | $docType .= "]>\n"; |
|
| 286 | |||
| 287 | 49 | return $docType; |
|
| 288 | } |
||
| 290 |