Showing 8,683 of 8,684 total issues
Method body_content
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function body_content()
{
$num_rows = $this->temp_num_rows;
$result = $this->temp_result;
$entered = $this->entered;
Method ttl
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static public function ttl()
{
$ret = true;
if (CoreLocal::get("memberID") == "0") {
return MiscLib::baseURL()."gui-modules/memlist.php";
Method fetch_report_data
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fetch_report_data()
{
$dbc = $this->connection;
$dbc->selectDB($this->config->get('OP_DB'));
$date1 = $this->form->date1;
Method fetch_report_data
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fetch_report_data()
{
$dbc = $this->connection;
$dbc->selectDB($this->config->get('OP_DB'));
$bStart = FormLib::get_form_value('date1','');
Method getQuery
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getQuery($groupby, $store, $dlog)
{
switch ($groupby) {
case 'upc':
default:
Method FPDF_EditPage
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FPDF_EditPage($data,$offset=0){
$pdf=new FPDF_EditPage_PDF('P','mm','Letter'); //start new instance of PDF
$pdf->Open(); //open new PDF Document
$pdf->setTagDate(date("m/d/Y"));
Method generateDeliSpecialSign
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateDeliSpecialSign($x, $y, $width, $height, $pdf, $row, $dbc)
{
$upc = $row['upc'];
$name = $row['description'];
Method WFC_HerbNspice_Flat
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function WFC_HerbNspice_Flat($data,$offset=0,$showPrice=0)
{
$dbc = FannieDB::get(FannieConfig::config('OP_DB'));
$pdf = new WFC_HerbNspice_Flat_PDF('L','mm','Letter');
$pdf->AddPage();
Method prepareStatements
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function prepareStatements($dbc)
{
/**
Look up sales for the week in a given category
*/
Method run
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function run()
{
$settings = $this->config->get('PLUGIN_SETTINGS');
$dbc = FannieDB::get($settings['ScheduledEmailDB']);
File ObfWeekEntryPage.php
has 280 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/*******************************************************************************
Copyright 2014 Whole Foods Co-op
Method get_view
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_view()
{
$res = $this->connection->query('
SELECT obfCategoryID, name, storeID
FROM ' . FannieDB::fqn('ObfCategories', 'plugin:ObfDatabaseV2') . '
Method getDetails
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getDetails($date1, $date2, $store)
{
$settings = $this->config->get('PLUGIN_SETTINGS');
$dbc = $this->connection;
$dbc->selectDB($settings['OverShortDatabase']);
Method renderAsPDF
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function renderAsPDF($pdf)
{
$margins = $pdf->GetMargins();
// this was written BEFORE patching
// fpdf to correctly return the top margin
Method get_date1_date2_handler
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_date1_date2_handler()
{
$date1 = date('Y-m-d', strtotime(FormLib::get('date1')));
$date2 = date('Y-m-d', strtotime(FormLib::get('date2')));
$args = array(FormLib::get('store'), $date1, $date2);
Method get_date1_date2_handler
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_date1_date2_handler()
{
$date1 = date('Y-m-d', strtotime(FormLib::get('date1')));
$date2 = date('Y-m-d', strtotime(FormLib::get('date2')));
$args = array(FormLib::get('store'), $date1, $date2);
Method process_file
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function process_file($linedata, $indexes)
{
$vendorID = 302;
$baseLine = $linedata[1];
$invoice = $baseLine[0];
Method drawPage
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function drawPage()
{
if (!($this->config instanceof FannieConfig)) {
$this->config = FannieConfig::factory();
}
Method run
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function run($args=array())
{
$ret = array();
if (!property_exists($args, 'upc')) {
// missing required arguments
Method javascript_content
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function javascript_content()
{
return <<<JAVASCRIPT
$(document).ready(function(){
$('tr').each(function(){