phplib/GraphiteGraph.php

Summary

Maintainability
A
35 mins
Test Coverage

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

        $graphitehost,
        $from = null,
        $title = null,
        $hideLegend = null,
        $width = null
Severity: Minor
Found in phplib/GraphiteGraph.php - About 35 mins to fix

    Avoid unused parameters such as '$from'.
    Open

            $from = null,
    Severity: Minor
    Found in phplib/GraphiteGraph.php by phpmd

    UnusedFormalParameter

    Since: 0.2

    Avoid passing parameters to methods or constructors and then not using those parameters.

    Example

    class Foo
    {
        private function bar($howdy)
        {
            // $howdy is not used
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

    There are no issues that match your filters.

    Category
    Status