Code Duplication    Length = 3-5 lines in 2 locations

htdocs/class/captcha/xoopscaptcha.php 1 location

@@ 139-143 (lines=5) @@
136
        $this->handler = null;
137
        if (file_exists($file = $this->path_basic . '/' . $name . '.php')) {
138
            require_once $file;
139
        } else {
140
            if (file_exists($file = $this->path_plugin . '/' . $name . '.php')) {
141
                require_once $file;
142
            }
143
        }
144
145
        if (!class_exists($class)) {
146
            $class = 'XoopsCaptchaText';

htdocs/class/module.textsanitizer.php 1 location

@@ 741-743 (lines=3) @@
738
    {
739
        if (file_exists($file = $this->path_basic . '/' . $name . '/' . $name . '.php')) {
740
            include_once $file;
741
        } elseif (file_exists($file = $this->path_plugin . '/' . $name . '/' . $name . '.php')) {
742
            include_once $file;
743
        } else {
744
            return false;
745
        }
746
        $class = 'Myts' . ucfirst($name);