Completed
Push — master ( cb58e3...9e0e7e )
by Askupa
01:49
created

bootstrap.php (1 issue)

Severity

Upgrade to new PHP Analysis Engine

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
This if statement is empty and can be removed.

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 the else branch, consider inverting the condition.

if (rand(1, 6) > 3) {
//print "Check failed";
} else {
    print "Check succeeded";
}

could be turned into

if (rand(1, 6) <= 3) {
    print "Check succeeded";
}

This is much more concise to read.

Loading history...
16
{
17
    // Load required classes if not using composer
18
}