HaaseIT/HCSF

View on GitHub
src/Controller/Admin/DBStatus.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method handleItems has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function handleItems()
    {
        if (filter_input(INPUT_GET, 'clearorphaneditems') !== null) {
            $this->db->exec('DELETE FROM item_lang WHERE itml_pid NOT IN (SELECT itm_id FROM item_base)');
        }
Severity: Minor
Found in src/Controller/Admin/DBStatus.php - About 1 hr to fix

    Method handleItemGroups has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function handleItemGroups()
        {
            if (filter_input(INPUT_GET, 'clearorphaneditemgroups') !== null) {
                $this->db->exec('DELETE FROM itemgroups_text WHERE itmgt_pid NOT IN (SELECT itmg_id FROM itemgroups_base)');
            }
    Severity: Minor
    Found in src/Controller/Admin/DBStatus.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status