mambax7/tdmdownloads

View on GitHub
class/Common/Images.php

Summary

Maintainability
A
3 hrs
Test Coverage

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

    public function getFormImages($action = false)
    {
        $moduleDirName      = \basename(\dirname(__DIR__, 2));
        $moduleDirNameUpper = \mb_strtoupper($moduleDirName);
        $helper             = Helper::getInstance();
Severity: Major
Found in class/Common/Images.php - About 2 hrs to fix

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

        public function getValuesImages($keys = null, $format = null, $maxDepth = null)
        {
            $moduleDirName      = \basename(\dirname(__DIR__, 2));
            $moduleDirNameUpper = \mb_strtoupper($moduleDirName);
            $helper             = Helper::getInstance();
    Severity: Minor
    Found in class/Common/Images.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status