lib/Ajde/Crud/Export/excel.lib.php

Summary

Maintainability
A
0 mins
Test Coverage

The class Excel has 12 public methods. Consider refactoring Excel to keep number of public methods under 10.
Open

class Excel
{
    private $col;
    private $row;
    private $data;
Severity: Minor
Found in lib/Ajde/Crud/Export/excel.lib.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

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

Avoid using short method names like Excel::up(). The configured minimum method name length is 3.
Open

    public function up($amount = 1)
    {
        $this->row -= $amount;
        if ($this->row < 0) {
            $this->row = 0;
Severity: Minor
Found in lib/Ajde/Crud/Export/excel.lib.php by phpmd

ShortMethodName

Since: 0.2

Detects when very short method names are used.

Example

class ShortMethod {
    public function a( $index ) { // Violation
    }
}

Source https://phpmd.org/rules/naming.html#shortmethodname

There are no issues that match your filters.

Category
Status