CORE-POS/IS4C

View on GitHub
fannie/modules/plugins2.0/GiftCardTracker/GiftCardTracker.php

Summary

Maintainability
C
1 day
Test Coverage

Method get_newgc_view has 113 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function get_newgc_view()
    {
        $json = FormLib::get('json');
        $dbc = FannieDB::get($this->config->get('OP_DB'));

Severity: Major
Found in fannie/modules/plugins2.0/GiftCardTracker/GiftCardTracker.php - About 4 hrs to fix

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

        public function get_view()
        {
            $dbc = FannieDB::get($this->config->get('OP_DB'));
            $save = FormLib::get('save');
            $uid = FormLib::get('uid');
    Severity: Major
    Found in fannie/modules/plugins2.0/GiftCardTracker/GiftCardTracker.php - About 2 hrs to fix

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

          public function get_gcid_save_handler()
          {
              $user = FannieAuth::getUID($this->current_user);
              $dbc = FannieDB::get($this->config->get('OP_DB'));
              $args = array($user);
      Severity: Minor
      Found in fannie/modules/plugins2.0/GiftCardTracker/GiftCardTracker.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status