CORE-POS/IS4C

View on GitHub
fannie/modules/plugins2.0/FreshDeals/WfcCoopDeals.php

Summary

Maintainability
B
4 hrs
Test Coverage

Method fetch_report_data has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function fetch_report_data()
    {
        $batchP = $this->connection->prepare("SELECT batchName, startDate, endDate FROM batches WHERE batchID=?");
        $batchW = $this->connection->getRow($batchP, array($this->form->batchSet));
        $dlog = DTransactionsModel::selectDlog($batchW['startDate'], $batchW['endDate']);
Severity: Major
Found in fannie/modules/plugins2.0/FreshDeals/WfcCoopDeals.php - About 2 hrs to fix

    Method form_content has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function form_content()
        {
            $batchR = $this->connection->query("SELECT batchID, batchName
                FROM batches
                WHERE batchName LIKE '%Co-op Deals A%' OR batchName LIKE '%Co-op Deals B%'
    Severity: Minor
    Found in fannie/modules/plugins2.0/FreshDeals/WfcCoopDeals.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status