Showing 8,683 of 8,684 total issues
Function updateDays
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mod.updateDays = function() {
clearIncoming();
var week = $('#modProj').html();
if (week == 0) {
week = $('#projSales').html().replace(',', '');
Function chainSubs
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mod.chainSubs = function(store_id) {
chainSubDepartments(
'../ws/',
{
super_id: '#super-dept'+store_id,
Method body_content
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function body_content()
{
$this->addOnloadCommand("selectSubmit('#search', '#selectform', '#filter-span')\n");
// originally 390
Method body_content
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function body_content()
{
?>
<div class="baseHeight">
<div class="listbox">
Method create
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create()
{
if ($this->connection->isView($this->name)) {
return true;
}
Method listModules
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static public function listModules($baseClass, $includeBase=False)
{
$ret = array();
// lookup plugin modules, then standard modules
Method create
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create()
{
if ($this->connection->isView($this->name)) {
return true;
}
Method fetch_report_data
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function fetch_report_data()
{
$dbc = $this->connection;
$dbc->selectDB($this->config->get('OP_DB'));
$super = FormLib::get('super');
Method form_content
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function form_content()
{
global $FANNIE_URL;
$stores = FormLib::storePicker();
ob_start();
Method ajaxItemSales
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function ajaxItemSales()
{
$upc = BarcodeLib::padUPC(FormLib::get('upc'));
$date1 = FormLib::get('date1');
$date2 = FormLib::get('date2');
Method fetch_report_data
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function fetch_report_data()
{
$dbc = $this->connection;
$dbc->selectDB($this->config->get('OP_DB'));
Method fetch_report_data
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function fetch_report_data()
{
$dbc = $this->connection;
$dbc->selectDB($this->config->get('OP_DB'));
Method toTable
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function toTable($dbc, $result, $dlog)
{
$this->addScript('../../src/javascript/tablesorter/jquery.tablesorter.js');
$this->addOnloadCommand("\$('.tablesorter').tablesorter();\n");
$ret = "<b>Matching receipts</b>:<br />";
Method get_view
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_view()
{
$storeID = COREPOS\Fannie\API\lib\Store::getIdByIp();
$ret = "";
Method get_list_handler
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_list_handler()
{
global $FANNIE_OP_DB;
$dbc = FannieDB::get($FANNIE_OP_DB);
Method __construct
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct($custdata, $meminfo, $tax_id, $tax_year, $fields, $account_number='')
{
global $FANNIE_PLUGIN_SETTINGS;
$dbc = FannieDB::get($FANNIE_PLUGIN_SETTINGS['GiveUsMoneyDB']);
$settings = new GumSettingsModel($dbc);
Method __construct
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct($custdata, $meminfo, $tax_id, $tax_year, $fields, $account_number='')
{
global $FANNIE_PLUGIN_SETTINGS;
$dbc = FannieDB::get($FANNIE_PLUGIN_SETTINGS['GiveUsMoneyDB']);
$settings = new GumSettingsModel($dbc);
Method salesTable
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function salesTable($store, $ts)
{
$segP = $this->connection->prepare("SELECT * FROM RpSegments WHERE storeID=? AND startDate=?");
if (date('N') == 1) {
$ts = mktime(0, 0, 0, date('n', $ts), date('j',$ts) - 7, date('Y',$ts));
Method __construct
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct($custdata, $meminfo, $tax_id, $tax_year, $fields, $account_number='')
{
global $FANNIE_PLUGIN_SETTINGS;
$dbc = FannieDB::get($FANNIE_PLUGIN_SETTINGS['GiveUsMoneyDB']);
$settings = new GumSettingsModel($dbc);
Method get_id_view
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_id_view()
{
global $FANNIE_URL;
$ret = '';