Code Duplication    Length = 7-7 lines in 2 locations

htdocs/install/class/pathcontroller.php 2 locations

@@ 197-203 (lines=7) @@
194
            }
195
            $ret *= $this->validPath[$path];
196
        }
197
        if ($PATH === 'lib' || empty($PATH)) {
198
            $path = 'lib';
199
            if (is_dir($this->xoopsPath[$path]) && is_readable($this->xoopsPath[$path])) {
200
                $this->validPath[$path] = 1;
201
            }
202
            $ret *= $this->validPath[$path];
203
        }
204
        if ($PATH === 'data' || empty($PATH)) {
205
            $path = 'data';
206
            if (is_dir($this->xoopsPath[$path]) && is_readable($this->xoopsPath[$path])) {
@@ 204-210 (lines=7) @@
201
            }
202
            $ret *= $this->validPath[$path];
203
        }
204
        if ($PATH === 'data' || empty($PATH)) {
205
            $path = 'data';
206
            if (is_dir($this->xoopsPath[$path]) && is_readable($this->xoopsPath[$path])) {
207
                $this->validPath[$path] = 1;
208
            }
209
            $ret *= $this->validPath[$path];
210
        }
211
212
        return $ret;
213
    }