CORE-POS/IS4C

View on GitHub
fannie/admin/labels/CreateTagsByDept.php

Summary

Maintainability
A
3 hrs
Test Coverage
B
88%

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

    protected function get_view()
    {
        $dbc = FannieDB::getReadOnly($this->config->get('OP_DB'));
        $deptsQ = $dbc->prepare("select dept_no,dept_name from departments order by dept_no");
        $deptsR = $dbc->execute($deptsQ);
Severity: Major
Found in fannie/admin/labels/CreateTagsByDept.php - About 2 hrs to fix

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

        protected function post_handler()
        {
            try {
                $start = $this->form->deptStart;
                $end = $this->form->deptEnd;
    Severity: Minor
    Found in fannie/admin/labels/CreateTagsByDept.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status