Showing 10 of 408 total issues
File cleanup.php
has 685 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
###
# MISC. DATA CLEAN UP FUNCTIONS
#
File resolve_chyrons.php
has 420 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
// Store the prior match and try it as the first option on the next time around. No need to
// start from zero when we know there's a pretty good chance that each name is going to
// occur repeatedly.
File meetings.php
has 282 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
###
# Retrieve and Store the Meeting Schedule
#
File legislators.php
has 266 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/*
* Connect to the database
*/
Consider simplifying this complex logical expression. Open
Open
if (
(substr($chyron['raw_text'], 0, 2) == 's8')
||
(substr($chyron['raw_text'], 0, 2) == '58')
||
File detect_faces.php
has 259 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
Avoid deeply nested control flow statements. Open
Open
if ($result === false) {
$log->put('SQL statement failed when adding history data for ' . $bill['number'], 7);
}
Avoid deeply nested control flow statements. Open
Open
if ($success === false) {
$log->put('Could not create directory ' . $downloads_dir . 'bills/' . $bill['year'], 8);
return false;
}
Avoid deeply nested control flow statements. Open
Open
if ($bill['id'] != false) {
$mc->delete('bill-' . $bill['id']);
}
Consider simplifying this complex logical expression. Open
Open
if (
($meeting['date'] == $known['date'])
&&
($meeting['description'] == $known['description'])
&&