Showing 8,683 of 8,684 total issues
Method sendAuth
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function sendAuth($domain="w1.mercurypay.com")
{
// initialize
$dbTrans = PaycardLib::paycard_db();
if (!$dbTrans) {
Method sort
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function sort(array $rowset)
{
$tax = false;
$discount = false;
$total = false;
Method fetch_report_data
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fetch_report_data(){
$dbc = $this->connection;
$dbc->selectDB($this->config->get('OP_DB'));
$month1 = $this->form->month1;
$month2 = $this->form->month2;
Method form_content
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function form_content(){
$dbc = $this->connection;
$dbc->selectDB($this->config->get('OP_DB'));
$depts = array();
$q = $dbc->prepare("SELECT dept_no,dept_name FROM departments ORDER BY dept_no");
Method javascriptContent
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function javascriptContent()
{
if ($this->report_format != 'html') {
return;
}
Method draw_table
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function draw_table($storeName, $storeID)
{
$dbc = FannieDB::get($this->config->get('OP_DB'));
$params = array();
$prep = $dbc->prepare("SELECT * FROM MovementTrackerParams");
Method generateMirrorTagSquareTags12
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateMirrorTagSquareTags12($x, $y, $guide, $width, $height, $pdf, $row, $dbc)
{
$upc = isset($row['upc']) ? $row['upc'] : '';
$desc = isset($row['description']) ? $row['description'] : '';
$size = isset($row['size']) ? $row['size'] : '';
Method generateServiceCaseTag
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateServiceCaseTag($x, $y, $guide, $width, $height, $pdf, $row, $dbc)
{
$upc = $row['upc'];
$desc = $row['description'];
$showPrice = FormLib::get('showPrice', false);
Method run
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function run()
{
global $FANNIE_OP_DB, $FANNIE_PLUGIN_SETTINGS, $argv;
$dbc = FannieDB::get($FANNIE_OP_DB);
$this->custdata = new CustdataModel($dbc);
Method fetch_report_data
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function fetch_report_data()
{
$editCSS = FannieAuth::validateUserQuiet('hr_editor') ? '' : 'collapse';
$settings = $this->config->get('PLUGIN_SETTINGS');
$dbc = FannieDB::get($settings['HrWebDB']);
File ViewsheetPage.php
has 285 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
include(dirname(__FILE__).'/../../../config.php');
if (!class_exists('FannieAPI')) {
include_once(__DIR__ . '/../../../classlib2.0/FannieAPI.php');
}
Method sort
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function sort(array $rowset)
{
$tax = false;
$discount = false;
$total = false;
Method get_view
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_view()
{
$store = FormLib::get('store', COREPOS\Fannie\API\lib\Store::getIdByIp());
$ts = time();
Method get_view
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_view()
{
return <<<HTML
<ul>
<li>Daily Tools
Method get_view
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_view()
{
$ret = '<table class="table table-bordered table-striped small">
<thead><tr>
<th>Coding</th>
Method drawItem
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function drawItem($pdf, $item, $row, $column)
{
$item['description'] = preg_replace("/[^\x01-\x7F]/"," ", $item['description']);
$item['description'] = str_replace(" ", " ", $item['description']);
$effective_width = $this->width - $this->left;
Method drawItem
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function drawItem($pdf, $item, $row, $column)
{
$item['description'] = preg_replace("/[^\x01-\x7F]/"," ", $item['description']);
$item['description'] = str_replace(" ", " ", $item['description']);
$effective_width = $this->width - $this->left;
Method readItemsFromFile
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static public function readItemsFromFile($filename)
{
$dbc = \FannieDB::get(\FannieConfig::factory()->get('OP_DB'));
$product = new \ProductsModel($dbc);
Method searchForm
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function searchForm()
{
$FANNIE_URL = $this->config->get('URL');
$ret = '';
$vars = array(
Method get_id_view
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_id_view()
{
$dbc = FannieDB::get($this->config->get('OP_DB'));
$prep = $dbc->prepare("