Code Duplication    Length = 11-11 lines in 2 locations

class/files/user/UserBroken.php 1 location

@@ 193-203 (lines=11) @@
190
      *
191
      * @return
192
      */
193
    private function getUserBrokenSwitch($moduleDirname, $tableName, $language)
194
    {
195
        $table = $this->getTable();
196
        $tableId = $table->getVar('table_id');
197
        $tableMid = $table->getVar('table_mid');
198
        $fields = $this->getTableFields($tableMid, $tableId);
199
        $cases = array('form' => array($this->getUserBrokenForm($tableName, $language)),
200
                    'save' => array($this->getUserBrokenSave($moduleDirname, $fields, $tableName, $language)), );
201
202
        return $this->xoopscode->getXoopsCodeSwitch('op', $cases, true);
203
    }
204
205
    /*
206
     *  @public function render

class/files/user/UserSubmit.php 1 location

@@ 206-216 (lines=11) @@
203
     *
204
     * @return string
205
     */
206
    private function getUserSubmitSwitch($moduleDirname, $tableName, $tableSoleName, $language)
207
    {
208
        $table = $this->getTable();
209
        $tableId = $table->getVar('table_id');
210
        $tableMid = $table->getVar('table_mid');
211
        $fields = $this->getTableFields($tableMid, $tableId);
212
        $cases = array('form' => array($this->getUserSubmitForm($moduleDirname, $tableName, $tableSoleName, $language)),
213
                    'save' => array($this->getUserSubmitSave($moduleDirname, $fields, $tableName, $language)), );
214
215
        return $this->xoopscode->getXoopsCodeSwitch('op', $cases, true);
216
    }
217
218
    /*
219
    *  @public function render