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