These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | use Xoopsmodules\instruction; |
||
4 | |||
5 | include_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
||
6 | $moduleDirName = basename(__DIR__); |
||
7 | |||
8 | //xoops_load('instruction', $moduleDirName); |
||
0 ignored issues
–
show
|
|||
9 | |||
10 | // |
||
0 ignored issues
–
show
Unused Code
Comprehensibility
introduced
by
45% of this comment could be valid code. Did you maybe forget this after debugging?
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. ![]() |
|||
11 | //include_once __DIR__ . '/class/utility.php'; |
||
12 | include_once __DIR__ . '/include/common.php'; |
||
13 | |||
14 | //$helper = new \Xoopsmodules\instruction\Helper::getHelper($moduleDirName); |
||
0 ignored issues
–
show
Unused Code
Comprehensibility
introduced
by
44% of this comment could be valid code. Did you maybe forget this after debugging?
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. ![]() |
|||
15 | // Трей |
||
16 | include_once $GLOBALS['xoops']->path('class/tree.php'); |
||
17 |
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.