original_string: public function addPromoCampaignParametersToUrl($url, $campaignName, $campaignMedium, $campaignContent = '')
      {
          if (empty($url)) {
              return '';
          }
  
          if (strpos($url, '?') === false) {
              $url .= '?';
          } else {
              $url .= '&';
          }
  
          $url .= $this->getCampaignParametersForPromoUrl($campaignName, $campaignMedium, $campaignContent);
  
          return $url;
      }
code: public function addPromoCampaignParametersToUrl($url, $campaignName, $campaignMedium, $campaignContent = '')
      {
          if (empty($url)) {
              return '';
          }
  
          if (strpos($url, '?') === false) {
              $url .= '?';
          } else {
              $url .= '&';
          }
  
          $url .= $this->getCampaignParametersForPromoUrl($campaignName, $campaignMedium, $campaignContent);
  
          return $url;
      }
code_tokens: public function addPromoCampaignParametersToUrl ( $ url , $ campaignName , $ campaignMedium , $ campaignContent = '' ) { if ( empty ( $ url ) ) { return '' ; } if ( strpos ( $ url , '?' ) === false ) { $ url .= '?' ; } else { $ url .= '&' ; } $ url .= $ this -> getCampaignParametersForPromoUrl ( $ campaignName , $ campaignMedium , $ campaignContent ) ; return $ url ; }
docstring: Appends campaign parameters to the given URL for promoting any Professional Support for Piwik service.
  
  @param string $url
  @param string $campaignName
  @param string $campaignMedium
  @param string $campaignContent
  @return string
docstring_tokens: Appends campaign parameters to the given URL for promoting any Professional Support for Piwik service .