mambax7/extcal

View on GitHub
class/Form/Spin/FormSpin.php

Summary

Maintainability
B
6 hrs
Test Coverage

FormSpin has 26 functions (exceeds 20 allowed). Consider refactoring.
Open

class FormSpin extends \XoopsFormElement
{
    /**
     * Value.
     *
Severity: Minor
Found in class/Form/Spin/FormSpin.php - About 3 hrs to fix

    Method render has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function render()
        {
            $sSpinFolder = $this->getFolder();
            $sFolderImg  = "{$sSpinFolder}/images/{$this->getImgFolder()}/";
    
    
    Severity: Major
    Found in class/Form/Spin/FormSpin.php - About 2 hrs to fix

      Method __construct has 13 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              $caption,
              $name,
              $value = 0,
              $min = 0,
              $max = 100,
      Severity: Major
      Found in class/Form/Spin/FormSpin.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status