CORE-POS/IS4C

View on GitHub
fannie/modules/plugins2.0/NcgCoupons/NcgCouponEditor.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method get_view has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function get_view()
    {
        $res = $this->connection->query('SELECT couponUPC, description, startDate, endDate FROM NcgCoupons ORDER BY startDate');
        $table = '';
        while ($row = $this->connection->fetchRow($res)) {
Severity: Minor
Found in fannie/modules/plugins2.0/NcgCoupons/NcgCouponEditor.php - About 1 hr to fix

    Method get_id_view has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function get_id_view()
        {
            $model = new NcgCouponsModel($this->connection);
            $model->couponUPC($this->id);
            $model->load();
    Severity: Minor
    Found in fannie/modules/plugins2.0/NcgCoupons/NcgCouponEditor.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status