Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | public static function normalize($html, $base_level = 0) |
||
|
|||
8 | { |
||
9 | if ( !self::_htmlContainsHeadings($html) ) |
||
10 | { |
||
11 | return $html; |
||
12 | } |
||
13 | |||
14 | $DomDocument = new \DOMDocument(); |
||
15 | $DomDocument->loadHTML($html); |
||
16 | |||
17 | $normalized_html = $DomDocument->saveHTML(); |
||
18 | |||
19 | return $normalized_html; |
||
20 | } |
||
21 | |||
30 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.