Showing 8,683 of 8,684 total issues
Method fetch_report_data
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function fetch_report_data()
{
try {
$date1 = $this->form->date1;
$date2 = $this->form->date2;
Method fetch_report_data
has 55 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 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function fetch_report_data()
{
$dbc = $this->connection;
try {
$date1 = $this->form->date1;
Method form_content
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function form_content()
{
$dbc = $this->connection;
$dbc->selectDB($this->config->get('OP_DB'));
$deptsQ = $dbc->prepare("select dept_no,dept_name from departments order by dept_no");
Method form_content
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function form_content()
{
$this->addScript('../../item/autocomplete.js');
$vendor = new VendorsModel($this->connection);
ob_start();
Method generateMirrorTag
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateMirrorTag($x, $y, $guide, $width, $height, $pdf, $row, $dbc)
{
$upc = isset($row['upc']) ? $row['upc'] : '';
$sku = isset($row['sku']) ? $row['sku'] : '';
if (strlen($sku) < 1)
Method generateDeliShortMirrorTag
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateDeliShortMirrorTag($x, $y, $guide, $width, $height, $pdf, $row, $dbc)
{
$upc = isset($row['upc']) ? $row['upc'] : '';
$sku = isset($row['sku']) ? $row['sku'] : '';
if (strlen($sku) < 1)
Method get_id_handler
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_id_handler()
{
$ret = array(
'registers' => array(
'0.01' => 0,
Method get_id_view
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_id_view()
{
$dateID = date('Ymd', strtotime($this->id));
$storeID = FormLib::get('store');
$empID = FormLib::get('emp');
Method body_content
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function body_content(){
global $FANNIE_PLUGIN_SETTINGS, $FANNIE_OP_DB;
$ts_db = FannieDB::get($FANNIE_PLUGIN_SETTINGS['TimesheetDatabase']);
ob_start();
Method css_content
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function css_content()
{
return '
.redtext {
color: red;
Method refresh_data
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function refresh_data($trans_db, $month, $year, $day=False){
global $FANNIE_OP_DB;
list($start_id, $start_date, $end_id, $end_date) = $this->dates($month, $year, $day);
$config = FannieConfig::factory();
Method get_view
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_view()
{
$timePeriods = array();
$ts = mktime(0,0,0,date('n'),1,date('Y'));
for ($i=0; $i<4; $i++) {
Method addItemForm
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function addItemForm($storeID)
{
$vendors = new VendorsModel($this->connection);
$vOpts = $vendors->toOptions();
$catP = $this->connection->prepare("SELECT deliCategoryID, name FROM DeliCategories WHERE storeID=? ORDER BY name");
Method addItemForm
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function addItemForm($storeID)
{
$vendors = new VendorsModel($this->connection);
$vOpts = $vendors->toOptions();
$catP = $this->connection->prepare("SELECT deliCategoryID, name FROM DeliCategories WHERE storeID=? ORDER BY name");
Method run
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function run()
{
$dbc = FannieDB::get($this->config->get('OP_DB'));
$dtrans = $this->config->get('TRANS_DB') . $dbc->sep() . 'dtransactions';
$settings = $this->config->get('PLUGIN_SETTINGS');
Method css_content
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function css_content(){
ob_start();
?>
#bdiv {
width: 768px;
Method parseWFC
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function parseWFC($fp, $dbc)
{
$limit = '
SELECT MAX(tdate) AS tdate
FROM EmailUsageLog
Method get_id_view
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_id_view()
{
global $FANNIE_OP_DB;
$dbc = FannieDB::get($FANNIE_OP_DB);
$patronage = new PatronageModel($dbc);
Method get_view
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_view()
{
global $FANNIE_OP_DB;
$dbc = FannieDB::get($FANNIE_OP_DB);
ob_start();