Code Duplication    Length = 13-13 lines in 2 locations

class/utility.php 1 location

@@ 525-537 (lines=13) @@
522
         * @param $url
523
         * @return bool|string
524
         */
525
        public static function planetFetchFopen($url)
526
        {
527
            if (!$fp = @fopen($url, 'r')) {
528
                return false;
529
            }
530
            $data = '';
531
            while (!feof($fp)) {
532
                $data .= fgets($fp, 1024);
533
            }
534
            fclose($fp);
535
536
            return $data;
537
        }
538
539
        /**
540
         * @param     $haystack

include/functions.php 1 location

@@ 517-529 (lines=13) @@
514
     * @param $url
515
     * @return bool|string
516
     */
517
    function planet_fetch_fopen($url)
518
    {
519
        if (!$fp = @fopen($url, 'r')) {
520
            return false;
521
        }
522
        $data = '';
523
        while (!feof($fp)) {
524
            $data .= fgets($fp, 1024);
525
        }
526
        fclose($fp);
527
528
        return $data;
529
    }
530
531
    /**
532
     * @param     $haystack