Code Duplication    Length = 8-8 lines in 2 locations

class/files/user/UserRate.php 1 location

@@ 128-135 (lines=8) @@
125
     *
126
     * @return string
127
     */
128
    private function getUserRateSwitch($moduleDirname, $tableId, $tableMid, $tableName, $tableSoleName, $language)
129
    {
130
        $fields = $this->getTableFields($tableMid, $tableId);
131
        $cases = array('form' => array($this->getUserRateForm($tableName, $language)),
132
                    'save' => array($this->getUserRateSave($moduleDirname, $fields, $tableName, $language)), );
133
134
        return $this->xoopscode->getXoopsCodeSwitch('op', $cases, true);
135
    }
136
137
    /*
138
     * @public function getAdminPagesList

class/files/user/UserSubmit.php 1 location

@@ 214-221 (lines=8) @@
211
     *
212
     * @return string
213
     */
214
    private function getUserSubmitSwitch($moduleDirname, $tableId, $tableMid, $tableName, $tableSoleName, $language)
215
    {
216
        $fields = $this->getTableFields($tableMid, $tableId);
217
        $cases = array('form' => array($this->getUserSubmitForm($tableName, $language)),
218
                    'save' => array($this->getUserSubmitSave($moduleDirname, $fields, $tableName, $language)), );
219
220
        return $this->xoopscode->getXoopsCodeSwitch('op', $cases, true);
221
    }
222
223
    /*
224
    *  @public function render