Code Duplication    Length = 3-3 lines in 2 locations

htdocs/class/captcha/image.php 1 location

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

htdocs/class/captcha/text.php 1 location

@@ 49-51 (lines=3) @@
46
    {
47
        $form = $this->loadText() . '&nbsp;&nbsp; <input type="text" name="' . $this->config['name'] . '" id="' . $this->config['name'] . '" size="' . $this->config['num_chars'] . '" maxlength="' . $this->config['num_chars'] . '" value="" />';
48
        $form .= '<br>' . _CAPTCHA_RULE_TEXT;
49
        if (!empty($this->config['maxattempts'])) {
50
            $form .= '<br>' . sprintf(_CAPTCHA_MAXATTEMPTS, $this->config['maxattempts']);
51
        }
52
53
        return $form;
54
    }