original_string: protected function getReferrerTop($VisitorsID)
  	{
  		$topNo = 30;
  		$VisitorsReferrerTop = array();
  		if ($VisitorsID) 
  		{
  			//Version
      		$objVisitorsReferrerTop = \Database::getInstance()
      		        ->prepare("SELECT 
                                      `visitors_referrer_dns`, 
                                      count(`id`) AS SUMRT
                                  FROM 
                                      tl_visitors_referrer
                                  WHERE 
                                      vid=?
                                  GROUP BY `visitors_referrer_dns`
                                  ORDER BY SUMRT DESC, visitors_referrer_dns ASC")
                      ->limit($topNo)
                      ->execute($VisitorsID);
      	    if ($objVisitorsReferrerTop->numRows > 0) 
      	    {
      		    while ($objVisitorsReferrerTop->next()) 
      		    {
      		    	if ($objVisitorsReferrerTop->visitors_referrer_dns !== '-') 
      		    	{
      		    		$VisitorsReferrerTop[] = array($objVisitorsReferrerTop->visitors_referrer_dns, $objVisitorsReferrerTop->SUMRT, $VisitorsID);
      		    	} 
      		    	else 
      		    	{
      		    		$VisitorsReferrerTop[] = array('- ('.$GLOBALS['TL_LANG']['MSC']['tl_visitors_stat']['referrer_direct'].')', $objVisitorsReferrerTop->SUMRT, 0);
      		    	}
      		    	
      		    }
      	    }
  		}
  		return $VisitorsReferrerTop;
  	}
code: protected function getReferrerTop($VisitorsID)
  	{
  		$topNo = 30;
  		$VisitorsReferrerTop = array();
  		if ($VisitorsID) 
  		{
  			//Version
      		$objVisitorsReferrerTop = \Database::getInstance()
      		        ->prepare("SELECT 
                                      `visitors_referrer_dns`, 
                                      count(`id`) AS SUMRT
                                  FROM 
                                      tl_visitors_referrer
                                  WHERE 
                                      vid=?
                                  GROUP BY `visitors_referrer_dns`
                                  ORDER BY SUMRT DESC, visitors_referrer_dns ASC")
                      ->limit($topNo)
                      ->execute($VisitorsID);
      	    if ($objVisitorsReferrerTop->numRows > 0) 
      	    {
      		    while ($objVisitorsReferrerTop->next()) 
      		    {
      		    	if ($objVisitorsReferrerTop->visitors_referrer_dns !== '-') 
      		    	{
      		    		$VisitorsReferrerTop[] = array($objVisitorsReferrerTop->visitors_referrer_dns, $objVisitorsReferrerTop->SUMRT, $VisitorsID);
      		    	} 
      		    	else 
      		    	{
      		    		$VisitorsReferrerTop[] = array('- ('.$GLOBALS['TL_LANG']['MSC']['tl_visitors_stat']['referrer_direct'].')', $objVisitorsReferrerTop->SUMRT, 0);
      		    	}
      		    	
      		    }
      	    }
  		}
  		return $VisitorsReferrerTop;
  	}
code_tokens: protected function getReferrerTop ( $ VisitorsID ) { $ topNo = 30 ; $ VisitorsReferrerTop = array ( ) ; if ( $ VisitorsID ) { //Version $ objVisitorsReferrerTop = \ Database :: getInstance ( ) -> prepare ( "SELECT 
                                      `visitors_referrer_dns`, 
                                      count(`id`) AS SUMRT
                                  FROM 
                                      tl_visitors_referrer
                                  WHERE 
                                      vid=?
                                  GROUP BY `visitors_referrer_dns`
                                  ORDER BY SUMRT DESC, visitors_referrer_dns ASC" ) -> limit ( $ topNo ) -> execute ( $ VisitorsID ) ; if ( $ objVisitorsReferrerTop -> numRows > 0 ) { while ( $ objVisitorsReferrerTop -> next ( ) ) { if ( $ objVisitorsReferrerTop -> visitors_referrer_dns !== '-' ) { $ VisitorsReferrerTop [ ] = array ( $ objVisitorsReferrerTop -> visitors_referrer_dns , $ objVisitorsReferrerTop -> SUMRT , $ VisitorsID ) ; } else { $ VisitorsReferrerTop [ ] = array ( '- (' . $ GLOBALS [ 'TL_LANG' ] [ 'MSC' ] [ 'tl_visitors_stat' ] [ 'referrer_direct' ] . ')' , $ objVisitorsReferrerTop -> SUMRT , 0 ) ; } } } } return $ VisitorsReferrerTop ; }
docstring: TOP 30 Referrer
  
  @param	integer	$VisitorsID	ID des Zählers
  @return	array
docstring_tokens: TOP 30 Referrer