Code Duplication    Length = 7-7 lines in 3 locations

class/files/user/UserXoopsVersion.php 3 locations

@@ 543-549 (lines=7) @@
540
                $ret .= $this->usercode->getUserModVersion(3, $mimetypes, 'config', '$c');
541
                $ret .= $this->getSimpleString('++$c;');
542
            }
543
            if (1 == $table->getVar('table_admin')) {
544
                $ret .= $this->getCommentLine('Admin pager');
545
                $adminPager = array('name' => "'adminpager'", 'title' => "'{$language}ADMIN_PAGER'", 'description' => "'{$language}ADMIN_PAGER_DESC'",
546
                        'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10', );
547
                $ret .= $this->usercode->getUserModVersion(3, $adminPager, 'config', '$c');
548
                $ret .= $this->getSimpleString('++$c;');
549
            }
550
            if (1 == $table->getVar('table_user')) {
551
                $ret .= $this->getCommentLine('User pager');
552
                $userPager = array('name' => "'userpager'", 'title' => "'{$language}USER_PAGER'", 'description' => "'{$language}USER_PAGER_DESC'",
@@ 550-556 (lines=7) @@
547
                $ret .= $this->usercode->getUserModVersion(3, $adminPager, 'config', '$c');
548
                $ret .= $this->getSimpleString('++$c;');
549
            }
550
            if (1 == $table->getVar('table_user')) {
551
                $ret .= $this->getCommentLine('User pager');
552
                $userPager = array('name' => "'userpager'", 'title' => "'{$language}USER_PAGER'", 'description' => "'{$language}USER_PAGER_DESC'",
553
                        'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10', );
554
                $ret .= $this->usercode->getUserModVersion(3, $userPager, 'config', '$c');
555
                $ret .= $this->getSimpleString('++$c;');
556
            }
557
            if (1 == $table->getVar('table_tag')) {
558
                $ret .= $this->getCommentLine('Use tag');
559
                $useTag = array('name' => "'usetag'", 'title' => "'{$language}USE_TAG'", 'description' => "'{$language}USE_TAG_DESC'",
@@ 557-563 (lines=7) @@
554
                $ret .= $this->usercode->getUserModVersion(3, $userPager, 'config', '$c');
555
                $ret .= $this->getSimpleString('++$c;');
556
            }
557
            if (1 == $table->getVar('table_tag')) {
558
                $ret .= $this->getCommentLine('Use tag');
559
                $useTag = array('name' => "'usetag'", 'title' => "'{$language}USE_TAG'", 'description' => "'{$language}USE_TAG_DESC'",
560
                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
561
                $ret .= $this->usercode->getUserModVersion(3, $useTag, 'config', '$c');
562
                $ret .= $this->getSimpleString('++$c;');
563
            }
564
        }
565
        $ret .= $this->getCommentLine('Number column');
566
        $numbCol = array('name' => "'numb_col'", 'title' => "'{$language}NUMB_COL'", 'description' => "'{$language}NUMB_COL_DESC'",