Method init_form_fields
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Fixed
Method __construct
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Fixed
Avoid unused local variables such as '$index'. Fixed
- Read upRead up
- Exclude checks
UnusedLocalVariable
Since: 0.2
Detects when a local variable is declared and/or assigned, but not used.
Example
class Foo {
public function doSomething()
{
$i = 5; // Unused
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
Line exceeds 120 characters; contains 132 characters Fixed
- Exclude checks
Line exceeds 120 characters; contains 167 characters Fixed
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Fixed
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Fixed
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Fixed
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Fixed
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Fixed
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 10 Fixed
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 10 Fixed
- Exclude checks
Multi-line function call not indented correctly; expected 10 spaces but found 8 Fixed
- Exclude checks
Multi-line function call not indented correctly; expected 10 spaces but found 8 Fixed
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Fixed
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 10 Fixed
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 10 Fixed
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Fixed
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 10 Fixed
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Fixed
- Exclude checks
Multi-line function call not indented correctly; expected 10 spaces but found 8 Fixed
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Fixed
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Fixed
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Fixed
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 6 Fixed
- Exclude checks