phplib/GraphiteGraph.php
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$graphitehost,
$from = null,
$title = null,
$hideLegend = null,
$width = null
Avoid unused parameters such as '$from'. Open
Open
$from = null,
- Read upRead up
- Exclude checks
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
}
}