flyimg/flyimg

Avoid unused parameters such as '$params'.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

    public function render($templateName, $params = [])

Since: PHPMD 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: http://phpmd.org/rules/unusedcode.txt

Severity
Category
Status