Code Duplication    Length = 7-7 lines in 3 locations

class/files/user/UserXoopsVersion.php 3 locations

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