Code Duplication    Length = 3-5 lines in 2 locations

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);

htdocs/class/captcha/xoopscaptcha.php 1 location

@@ 145-149 (lines=5) @@
142
        $this->handler = null;
143
        if (file_exists($file = $this->path_basic . '/' . $name . '.php')) {
144
            require_once $file;
145
        } else {
146
            if (file_exists($file = $this->path_plugin . '/' . $name . '.php')) {
147
                require_once $file;
148
            }
149
        }
150
151
        if (!class_exists($class)) {
152
            $class = 'XoopsCaptchaText';