Code Duplication    Length = 7-7 lines in 3 locations

class/files/user/UserXoopsVersion.php 3 locations

@@ 512-518 (lines=7) @@
509
                $ret .= $this->usercode->getUserModVersion(3, $mimetypes, 'config', '$c');
510
                $ret .= $this->getSimpleString('++$c;');
511
            }
512
            if (1 == $table->getVar('table_admin')) {
513
                $ret .= $this->getCommentLine('Admin pager');
514
                $adminPager = array('name' => "'adminpager'", 'title' => "'{$language}ADMIN_PAGER'", 'description' => "'{$language}ADMIN_PAGER_DESC'",
515
                        'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10', );
516
                $ret .= $this->usercode->getUserModVersion(3, $adminPager, 'config', '$c');
517
                $ret .= $this->getSimpleString('++$c;');
518
            }
519
            if (1 == $table->getVar('table_user')) {
520
                $ret .= $this->getCommentLine('User pager');
521
                $userPager = array('name' => "'userpager'", 'title' => "'{$language}USER_PAGER'", 'description' => "'{$language}USER_PAGER_DESC'",
@@ 519-525 (lines=7) @@
516
                $ret .= $this->usercode->getUserModVersion(3, $adminPager, 'config', '$c');
517
                $ret .= $this->getSimpleString('++$c;');
518
            }
519
            if (1 == $table->getVar('table_user')) {
520
                $ret .= $this->getCommentLine('User pager');
521
                $userPager = array('name' => "'userpager'", 'title' => "'{$language}USER_PAGER'", 'description' => "'{$language}USER_PAGER_DESC'",
522
                        'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10', );
523
                $ret .= $this->usercode->getUserModVersion(3, $userPager, 'config', '$c');
524
                $ret .= $this->getSimpleString('++$c;');
525
            }
526
            if (1 == $table->getVar('table_tag')) {
527
                $ret .= $this->getCommentLine('Use tag');
528
                $useTag = array('name' => "'usetag'", 'title' => "'{$language}USE_TAG'", 'description' => "'{$language}USE_TAG_DESC'",
@@ 526-532 (lines=7) @@
523
                $ret .= $this->usercode->getUserModVersion(3, $userPager, 'config', '$c');
524
                $ret .= $this->getSimpleString('++$c;');
525
            }
526
            if (1 == $table->getVar('table_tag')) {
527
                $ret .= $this->getCommentLine('Use tag');
528
                $useTag = array('name' => "'usetag'", 'title' => "'{$language}USE_TAG'", 'description' => "'{$language}USE_TAG_DESC'",
529
                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
530
                $ret .= $this->usercode->getUserModVersion(3, $useTag, 'config', '$c');
531
                $ret .= $this->getSimpleString('++$c;');
532
            }
533
        }
534
        $ret .= $this->getCommentLine('Number column');
535
        $numbCol = array('name' => "'numb_col'", 'title' => "'{$language}NUMB_COL'", 'description' => "'{$language}NUMB_COL_DESC'",