eustasy/phoenix

View on GitHub

Showing 67 of 68 total issues

Blank line found at end of control structure
Open

 
 

The method task_log uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

} else {
return false;
}

The method tracker_allowed uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

} else {
return $allowed_torrents;
}

The method mysqli_fetch_once uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

} else {
return false;
}

The method peer_new uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

} else {
tracker_error('Failed to add new peer.');
}

The method peer_delete uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

} else {
tracker_error('Failed to remove peer.');
}

The method peer_access uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

} else {
tracker_error('Failed to update peers last access.');
}

The method create_database uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

} else {
if ( $debug ) {
echo 'Database Creation succesful.'.PHP_EOL;
}
return true;

The method mysqli_array_build uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

} else {
$response = array();
while ( $thing = mysqli_fetch_array($result) ) {
$response[] = $thing[0];
}

Usage of ELSE IF is discouraged; use ELSEIF instead
Open

} else if ( $Process == 'clean' ) {
Severity: Minor
Found in admin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

} else if ( strlen($peer['peer_id'] ) != 40) {
Severity: Minor
Found in announce.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

if ( version_compare(PHP_VERSION, '5.5.0', '>=') ) {
Severity: Minor
Found in admin.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

if ( !class_exists('mysqli') ) {
Severity: Minor
Found in admin.php by phpcodesniffer

Usage of ELSE IF is discouraged; use ELSEIF instead
Open

} else if (

Line indented incorrectly; expected 8 spaces, found 12
Open

}
Severity: Minor
Found in admin.php by phpcodesniffer

Usage of ELSE IF is discouraged; use ELSEIF instead
Open

} else if ( isset($_GET['json']) ) {

Line indented incorrectly; expected 0 spaces, found 4
Open

}
Severity: Minor
Found in admin.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

}
Severity: Minor
Found in admin.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 12
Open

if ( $database_size ) {
Severity: Minor
Found in admin.php by phpcodesniffer

Usage of ELSE IF is discouraged; use ELSEIF instead
Open

} else if ( $peer_count > $settings['random_limit'] ) {
Severity
Category
Status
Source
Language