Code Duplication    Length = 7-7 lines in 3 locations

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

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

application/modules/comments/comments_widgets.php 1 location

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