Code Duplication    Length = 4-4 lines in 2 locations

controller/comments.php 1 location

@@ 98-101 (lines=4) @@
95
        ]);
96
97
        // The CAPTCHA kicks in here. We can't help that the information gets lost on language change.
98
        if (!$this->user->data['is_registered'] && $this->config['dir_visual_confirm']) {
99
            $this->captcha = $this->captcha_factory->get_instance($this->config['captcha_plugin']);
100
            $this->captcha->init(CONFIRM_POST);
101
        }
102
    }
103
104
    /**

controller/links.php 1 location

@@ 257-260 (lines=4) @@
254
        $this->categorie->get($cat_id);
255
256
        // The CAPTCHA kicks in here. We can't help that the information gets lost on language change.
257
        if (!$this->user->data['is_registered'] && $this->config['dir_visual_confirm']) {
258
            $this->captcha = $this->captcha_factory->get_instance($this->config['captcha_plugin']);
259
            $this->captcha->init(CONFIRM_POST);
260
        }
261
262
        // If form is done
263
        if ($submit || $refresh) {