Code Duplication    Length = 3-3 lines in 2 locations

htdocs/class/captcha/image.php 1 location

@@ 78-80 (lines=3) @@
75
        $input = '<input type="text" name="' . $this->config['name'] . '" id="' . $this->config['name'] . '" size="' . $this->config['num_chars'] . '" maxlength="' . $this->config['num_chars'] . '" value="" required>';
76
        $rule = XoopsLocale::INPUT_LETTERS_IN_THE_IMAGE;
77
        $rule .= '<br />' . (empty($this->config['casesensitive']) ? XoopsLocale::CODE_IS_CASE_INSENSITIVE : XoopsLocale::CODE_IS_CASE_SENSITIVE);
78
        if (!empty($this->config['maxattempts'])) {
79
            $rule .= '<br />' . sprintf(XoopsLocale::F_MAXIMUM_ATTEMPTS, $this->config['maxattempts']);
80
        }
81
        return $js . $image . '<br /><br />' . $input . '<br />' . $rule;
82
    }
83

htdocs/class/captcha/text.php 1 location

@@ 39-41 (lines=3) @@
36
			. '" id="' . $this->config['name'] . '" size="' . $this->config['num_chars']
37
			. '" maxlength="' . $this->config['num_chars'] . '" value="" />';
38
        $form .= '<br />' . XoopsLocale::INPUT_RESULT_FROM_EXPRESSION;
39
        if (!empty($this->config['maxattempts'])) {
40
            $form .= '<br />' . sprintf(XoopsLocale::F_MAXIMUM_ATTEMPTS, $this->config['maxattempts']);
41
        }
42
        return $form;
43
    }
44