Code Duplication    Length = 12-15 lines in 2 locations

htdocs/class/snoopy.php 2 locations

@@ 411-425 (lines=15) @@
408
        Output:		$this->results	the resulting html form
409
    \*======================================================================*/
410
411
    function fetchform($URI)
412
    {
413
414
        if ($this->fetch($URI)) {
415
416
            if (is_array($this->results)) {
417
                for ($x = 0; $x < count($this->results); $x++)
418
                    $this->results[$x] = $this->_stripform($this->results[$x]);
419
            } else
420
                $this->results = $this->_stripform($this->results);
421
422
            return true;
423
        } else
424
            return false;
425
    }
426
427
428
    /*======================================================================*\
@@ 435-446 (lines=12) @@
432
        Output:		$this->results	the text from the web page
433
    \*======================================================================*/
434
435
    function fetchtext($URI)
436
    {
437
        if ($this->fetch($URI)) {
438
            if (is_array($this->results)) {
439
                for ($x = 0; $x < count($this->results); $x++)
440
                    $this->results[$x] = $this->_striptext($this->results[$x]);
441
            } else
442
                $this->results = $this->_striptext($this->results);
443
            return true;
444
        } else
445
            return false;
446
    }
447
448
    /*======================================================================*\
449
        Function:	submitlinks