CORE-POS/IS4C

View on GitHub
fannie/mem/PaymentPlanEditor.php

Summary

Maintainability
C
1 day
Test Coverage
A
94%

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

    public function get_id_view()
    {
        $dbc = FannieDB::getReadOnly($this->config->get('OP_DB'));
        $codes = new ReasoncodesModel($dbc);
        $plan = new EquityPaymentPlansModel($dbc);
Severity: Major
Found in fannie/mem/PaymentPlanEditor.php - About 3 hrs to fix

    File PaymentPlanEditor.php has 288 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /*******************************************************************************
    
        Copyright 2015 Whole Foods Co-op
    
    
    Severity: Minor
    Found in fannie/mem/PaymentPlanEditor.php - About 2 hrs to fix

      Method helpContent has 55 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function helpContent()
          {
              return '
                  <p>
                  A payment plan can be assigned to a member to
      Severity: Major
      Found in fannie/mem/PaymentPlanEditor.php - About 2 hrs to fix

        Method unitTest has 48 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function unitTest($phpunit)
            {
                $values = new \COREPOS\common\mvc\ValueContainer();
                $values->_method = 'get';
                $this->setForm($values);
        Severity: Minor
        Found in fannie/mem/PaymentPlanEditor.php - About 1 hr to fix

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

              public function get_view()
              {
                  $dbc = FannieDB::getReadOnly($this->config->get('OP_DB'));
                  $plans = new EquityPaymentPlansModel($dbc);
                  $ret = '<table class="table table-bordered">
          Severity: Minor
          Found in fannie/mem/PaymentPlanEditor.php - About 1 hr to fix

            There are no issues that match your filters.

            Category
            Status