10 */
11class MyView {
12 protected $vars = array();
13 public function __construct($template_dir = null) {14 $this->template_dir = dirname(__FILE__).'/templates/';
15 }
16 public function render($template_file) {
The constructor signature contains one or more unused parameters. Since these are nowhere used in the class, it can be safely removed.
class UnusedParam
{
public function __construct($unusedParameter)
{}
}
class UnusedParam
{
public function __construct()
{}
}