Showing 8,683 of 8,684 total issues
Method isSubscribed
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function isSubscribed($record, $columns, $chimp, $LISTID, $memlist)
{
list($card_no, $email, $fname, $lname, $changed) = $this->unpackRecord($record, $columns);
$memlist .= sprintf('%d,', $card_no);
$this->custdata->reset();
Method get_json_handler
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_json_handler()
{
global $FANNIE_OP_DB;
$dbc = FannieDB::get($FANNIE_OP_DB);
Method getOtherStore
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getOtherStore($storeID, $weekID)
{
$dbc = $this->connection;
$conf = $this->config->get('PLUGIN_SETTINGS');
$dbc->selectDB($conf['ObfDatabaseV2']);
Method post_id_view
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function post_id_view()
{
$dbc = FannieDB::get($this->config->get('OP_DB'));
$any = FormLib::get('any') ? 1 : 0;
Method getHeader
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getHeader()
{
global $FANNIE_URL;
$this->addCssFile('css/styles.css');
$this->addCssFile($FANNIE_URL . 'src/javascript/jquery-ui.css');
Method get_view
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_view()
{
$dbc = $this->connection;
$settings = $this->config->get('PLUGIN_SETTINGS');
$dbc->selectDB($settings['TimesheetDatabase']);
Method get_view
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_view()
{
return <<<HTML
<form method="post" action="AccessSignupPage.php">
Method post_view
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function post_view()
{
$dbc = FannieDB::get($this->config->get('OP_DB'));
$fp = fopen($_FILES['apl']['tmp_name'], 'r');
if (!$fp) {
Method get_view
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_view()
{
$backLink = isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'RpDirectPage.php')
? 'RpDirectPage.php'
: 'RpOrderPage.php';
File FannieAutoComplete.php
has 265 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/*******************************************************************************
Copyright 2014 Whole Foods Co-op
Method listFromCurrentSale
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function listFromCurrentSale($dbc)
{
$ids = '';
$args = array();
$s_def = $dbc->tableDefinition('SignProperties');
Method getItemBySKU
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function getItemBySKU($sku)
{
$dbc = self::dbc();
// legacy behavior. + forces entry to be treated
// as a SKU instead of a UPC.
Method drawPDF
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function drawPDF()
{
$pdf = new \FPDF('P', 'mm', 'Letter');
$pdf->SetMargins(6.35, 6.35, 6.35);
$pdf->SetAutoPageBreak(false);
Method drawPDF
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function drawPDF()
{
$pdf = new \FPDF('L', 'mm', 'Letter');
$pdf->SetMargins(3.175, 3.175, 3.175);
$pdf->SetAutoPageBreak(false);
Method getView
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getView()
{
global $FANNIE_OP_DB;
$dbc = FannieDB::get($FANNIE_OP_DB);
Method showEditForm
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function showEditForm($upc, $display_mode=1, $expand_mode=1)
{
$upc = BarcodeLib::padUPC($upc);
$ret = '<div id="ExtraInfoFieldset" class="panel panel-default">';
Method getDeptDiscrepancies
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getDeptDiscrepancies($dbc)
{
$itemA = array();
$itemB = array();
Method ParseAuthMessage
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected void ParseAuthMessage(byte[] msg)
{
System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
// skipping 0 (stx), 1-3 (message #)
Method ReadCallback
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void ReadCallback(IAsyncResult iar)
{
byte[] input = null;
try {
input = (byte[])iar.AsyncState;
Method FramesToMessage
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private WsDataFrame FramesToMessage(byte[] frames)
{
if (frames.Length < 2) {
throw new WsProtocolException("Invalid frame: too short (header)");
}