yiisoft/yii2

View on GitHub
framework/widgets/ActiveForm.php

Summary

Maintainability
A
0 mins
Test Coverage

The class ActiveForm has 27 fields. Consider redesigning ActiveForm to keep the number of fields under 15.
Open

class ActiveForm extends Widget
{
    /**
     * Add validation state class to container tag
     * @since 2.0.14
Severity: Minor
Found in framework/widgets/ActiveForm.php by phpmd

TooManyFields

Since: 0.1

Classes that have too many fields could be redesigned to have fewer fields, possibly through some nested object grouping of some of the information. For example, a class with city/state/zip fields could instead have one Address field.

Example

class Person {
   protected $one;
   private $two;
   private $three;
   [... many more fields ...]
}

Source https://phpmd.org/rules/codesize.html#toomanyfields

There are no issues that match your filters.

Category
Status