| 1 | <?php |
||
| 7 | class uiLabel extends Label |
||
| 8 | { |
||
| 9 | |||
| 10 | const TYPE_NORMAL = "normal"; |
||
| 11 | const TYPE_TITLE = "title"; |
||
| 12 | const TYPE_HEADER = "header"; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * uiLabel constructor. |
||
| 16 | * @param string $text |
||
| 17 | * @param string $type |
||
| 18 | * @param string|null $controlId |
||
| 19 | */ |
||
| 20 | 1 | public function __construct($text = "", $type = self::TYPE_NORMAL, $controlId = null) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @param DOMDocument $domDocument |
||
| 52 | * @return DOMElement |
||
| 53 | */ |
||
| 54 | 1 | public function render(\DOMDocument $domDocument) |
|
| 65 | } |
||
| 66 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.