1 | <?php |
||
24 | class DBBaseModule extends Html5BaseModule{ |
||
25 | use DatabaseTrait; |
||
26 | |||
27 | /** |
||
28 | * Holds an array of FQN strings to the current base module's children |
||
29 | * |
||
30 | * @var array |
||
31 | * @see \chillerlan\bbcode\Modules\ModuleInfo::$modules |
||
32 | */ |
||
33 | protected $modules = [ |
||
34 | DBTags::class, |
||
35 | Code::class, |
||
36 | Containers::class, |
||
37 | Expanders::class, |
||
38 | # Images::class, |
||
|
|||
39 | # Links::class, |
||
40 | Lists::class, |
||
41 | Noparse::class, |
||
42 | # Simpletext::class, |
||
43 | # Singletags::class, |
||
44 | # StyledText::class, |
||
45 | Tables::class, |
||
46 | Video::class, |
||
47 | ]; |
||
48 | |||
49 | /** |
||
50 | * @var \chillerlan\Database\Drivers\DBDriverInterface |
||
51 | */ |
||
52 | protected $DBDriverInterface; |
||
53 | |||
54 | /** |
||
55 | * DBBaseModule constructor. |
||
56 | * |
||
57 | * @param \chillerlan\bbcode\BBTemp|null $bbtemp |
||
58 | */ |
||
59 | public function __construct(BBTemp $bbtemp = null){ |
||
67 | |||
68 | } |
||
69 |
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.