These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /** |
||
3 | * This file is used to manually include all required PHP files. If you are |
||
4 | * using composer as your dependency manager, you do not need to include this |
||
5 | * file as composer will include all necessary files automatically. |
||
6 | */ |
||
7 | |||
8 | // Prevent direct file access |
||
9 | defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); |
||
10 | |||
11 | /** |
||
12 | * Load module functions. If this amarkal module has not been loaded, |
||
13 | * functions.php will not return false. |
||
14 | */ |
||
15 | if(false !== (require_once 'functions.php')) |
||
0 ignored issues
–
show
|
|||
16 | { |
||
17 | // Load required classes if not using composer |
||
18 | } |
This check looks for the bodies of
if
statements that have no statements or where all statements have been commented out. This may be the result of changes for debugging or the code may simply be obsolete.These
if
bodies can be removed. If you have an empty if but statements in theelse
branch, consider inverting the condition.could be turned into
This is much more concise to read.