Code Duplication    Length = 7-7 lines in 3 locations

application/modules/comments/comments_widgets.php 1 location

@@ 72-78 (lines=7) @@
69
     * @param string $viewName
70
     * @param array $data
71
     */
72
    public function render($viewName, array $data = []) {
73
        if (!empty($data)) {
74
            $this->template->add_array($data);
75
        }
76
77
        $this->template->show('file:application/' . getModContDirName('comments') . '/comments/templates/' . $viewName);
78
    }
79
80
    /**
81
     * Configure widget settings

application/modules/sitemap/admin.php 1 location

@@ 247-253 (lines=7) @@
244
     * @param string $viewName
245
     * @param array $data
246
     */
247
    public function render($viewName, array $data = []) {
248
        if (!empty($data)) {
249
            $this->template->add_array($data);
250
        }
251
252
        $this->template->show('file:application/' . getModContDirName('sitemap') . '/sitemap/templates/admin/' . $viewName);
253
    }
254
255
    /**
256
     * Save sitemap

application/modules/comments/admin.php 1 location

@@ 172-178 (lines=7) @@
169
        return $children;
170
    }
171
172
    public function render($viewName, array $data = []) {
173
        if (!empty($data)) {
174
            $this->template->add_array($data);
175
        }
176
        $modContDirName = getModContDirName('comments');
177
        $this->template->show('file:' . "application/{$modContDirName}comments/templates/$viewName");
178
    }
179
180
    // Edit comment
181