Showing 8,683 of 8,684 total issues
File CardReader.php
has 260 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace COREPOS\pos\plugins\Paycards\card;
use \Exeception;
Method body_content
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function body_content() {
$stem = MiscLib::baseURL() . 'graphics/';
?>
<div class="baseHeight">
<div class="centeredDisplay colored rounded">
Method errorCheck
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function errorCheck()
{
//force negative entered value when the total is negative.
if (CoreLocal::get("amtdue") <0 && $this->amount >= 0) {
$this->amount = -1 * $this->amount;
Method process_file
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function process_file($linedata, $indexes)
{
$dbc = $this->connection;
$dbc->selectDB($this->config->get('OP_DB'));
$vendorID = $this->getVendorID();
Method form_content
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function form_content()
{
ob_start();
$codes = new LikeCodesModel($this->connection);
$opts = $codes->toOptions();
Method fetch_report_data
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function fetch_report_data()
{
$dbc = $this->connection;
$dbc->selectDB($this->config->get('TRANS_DB'));
File WFC_HerbNspice_3UP.php
has 260 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
use COREPOS\Fannie\API\FanniePlugin;
if (!class_exists('FpdfWithBarcode')) {
include(dirname(__FILE__) . '/../FpdfWithBarcode.php');
}
Method generateDeliNarrowMirrorTag
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateDeliNarrowMirrorTag($x, $y, $guide, $width, $height, $pdf, $row, $dbc)
{
$x += 17;
$upc = isset($row['upc']) ? $row['upc'] : '';
$sku = isset($row['sku']) ? $row['sku'] : '';
Method newMenuToOldMenu
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function newMenuToOldMenu($menu)
{
/**
OLD:
array(
Method get_view
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_view()
{
$dbc = FannieDB::getReadOnly($this->config->get('OP_DB'));
$emp_no = $this->form->tryGet('emp_no',0);
Method run
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function run()
{
$settings = $this->config->get('PLUGIN_SETTINGS');
$dbc = FannieDB::get($settings['ScheduledEmailDB']);
Method post_id_principal_term_rate_loandate_handler
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function post_id_principal_term_rate_loandate_handler()
{
global $FANNIE_PLUGIN_SETTINGS, $FANNIE_OP_DB;
$dbc = FannieDB::get($FANNIE_PLUGIN_SETTINGS['GiveUsMoneyDB']);
$model = new GumLoanAccountsModel($dbc);
Method run
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function run()
{
$settings = $this->config->get('PLUGIN_SETTINGS');
$dbc = FannieDB::get($settings['StaffArPayrollDB']);
$today = date('Y-m-d');
Method drawPDF
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function drawPDF()
{
$pdf = $this->createPDF();
$dbc = FannieDB::get(FannieConfig::config('OP_DB'));
$basicP = $dbc->prepare("SELECT
Method get_id_view
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_id_view()
{
$prod = new ProductsModel($this->connection);
$infoP = $this->connection->prepare('
SELECT *
Method get_id_view
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_id_view()
{
$URL = $this->config->get('URL');
$table = DTransactionsModel::selectDlog($this->__models['start'],$this->__models['end']);
$monthYear = date('Ym',strtotime($this->__models['start']));
Method itemList
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function itemList($orderID,$table="PendingSpecialOrder")
{
$dbc = $this->connection;
$dbc->selectDB($this->config->get('OP_DB'));
$TRANS = $this->config->get('TRANS_DB') . $dbc->sep();
Method helpContent
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function helpContent()
{
return '<p>Vendors are the entities the store purchases its
products from. The most important data associated with
a vendor is their catalog of items. A product that the store
Method get_view
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_view()
{
$config = FannieConfig::factory();
$settings = $config->get('PLUGIN_SETTINGS');
$inStr = '';
Method get_view
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_view()
{
$dbc = FannieDB::get($this->config->get('OP_DB'));
$item = array();