fannie/modules/plugins2.0/FreshDeals/FreshDealsData.php
Method get_view
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_view()
{
$batchR = $this->connection->query("SELECT batchID, batchName, endDate FROM batches WHERE batchName LIKE '%FRESH DEAL%' ORDER BY batchID DESC");
$opts = '';
while ($row = $this->connection->fetchRow($batchR)) {
Method get_batchID_view
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_batchID_view()
{
if (!is_array($this->batchID)) {
$this->batchID = array($this->batchID);
}
Method getSales
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getSales($upc, $store, $start, $end)
{
$dlog = DTransactionsModel::selectDlog($start, $end);
$upcs = array();
if (substr($upc, 0, 2) == 'LC') {