Code Duplication    Length = 7-7 lines in 2 locations

SEOstats/Services/Google.php 2 locations

@@ 47-53 (lines=7) @@
44
     * @param    string $url String, containing the query URL.
45
     * @return   integer           Returns the total site-search result count.
46
     */
47
    public static function getSiteindexTotal($url = false)
48
    {
49
        $url = parent::getUrl($url);
50
        $query = urlencode("site:{$url}");
51
52
        return self::getSearchResultsTotal($query);
53
    }
54
55
    /**
56
     *  Returns the total amount of results for a Google 'link:'-search for the object URL.
@@ 61-67 (lines=7) @@
58
     * @param    string $url String, containing the query URL.
59
     * @return   integer           Returns the total link-search result count.
60
     */
61
    public static function getBacklinksTotal($url = false)
62
    {
63
        $url = parent::getUrl($url);
64
        $query = urlencode("link:{$url}");
65
66
        return self::getSearchResultsTotal($query);
67
    }
68
69
    /**
70
     *  Returns total amount of results for any Google search,