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");
@@ 201-204 (lines=4) @@
198
		$navigation = $this->adminxoopscode->getAdminAddNavigation($tableName);
199
		$ret .= $this->t2.$this->xoopscode->getXoopsCodeTplAssign('navigation', $navigation);				
200
		
201
        if (1 == $fieldInForm) {
202
			$ret .= $this->t2.$this->adminxoopscode->getAdminItemButton($language, $tableName, $stuTableSoleName, '', 'list');
203
			$ret .= $this->t2.$this->xoopscode->getXoopsCodeTplAssign('buttons', "\$adminMenu->renderButton()");            
204
        }
205
        $ret .= <<<EOT
206
        // Get Form
207
        \${$tableName}Obj =& \${$tableName}Handler->create();