Code Duplication    Length = 4-4 lines in 2 locations

class/files/admin/AdminPages.php 2 locations

@@ 149-152 (lines=4) @@
146
        $navigation = $this->adminxoopscode->getAdminAddNavigation($tableName);
147
        $ret .= $this->t2.$this->xoopscode->getXoopsCodeTplAssign('navigation', $navigation);
148
149
        if (1 == $fieldInForm) {
150
            $ret .= $this->t2.$this->adminxoopscode->getAdminItemButton($language, $tableName, $stuTableSoleName, '?op=new', 'add');
151
            $ret .= $this->t2.$this->xoopscode->getXoopsCodeTplAssign('buttons', '$adminMenu->renderButton()');
152
        }
153
154
        $ret .= $this->t2.$this->xoopscode->getXoopsCodeObjHandlerCount($tableName);
155
        $ret .= $this->t2.$this->xoopscode->getXoopsCodeObjHandlerAll($tableName, '', '$start', '$limit');
@@ 190-193 (lines=4) @@
187
        $navigation = $this->adminxoopscode->getAdminAddNavigation($tableName);
188
        $ret .= $this->t2.$this->xoopscode->getXoopsCodeTplAssign('navigation', $navigation);
189
190
        if (1 == $fieldInForm) {
191
            $ret .= $this->t2.$this->adminxoopscode->getAdminItemButton($language, $tableName, $stuTableSoleName, '', 'list');
192
            $ret .= $this->t2.$this->xoopscode->getXoopsCodeTplAssign('buttons', '$adminMenu->renderButton()');
193
        }
194
		$ret .= $this->t2.$this->getCommentLine('Get Form');
195
		$ret .= $this->t2.$this->xoopscode->getXoopsCodeObjHandlerCreate($tableName);
196
		$ret .= $this->t2.$this->xoopscode->getXoopsCodeGetForm('form', $tableName, 'Obj');