Code Duplication    Length = 3-5 lines in 2 locations

htdocs/class/captcha/xoopscaptcha.php 1 location

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

htdocs/class/module.textsanitizer.php 1 location

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