original_string: public function getBackLinkFromUrlAndKeyword($url, $keyword)
      {
          if ($keyword === API::LABEL_KEYWORD_NOT_DEFINED) {
              return 'https://matomo.org/faq/general/#faq_144';
          }
          $keyword = urlencode($keyword);
          $keyword = str_replace(urlencode('+'), urlencode(' '), $keyword);
          $host    = substr($url, strpos($url, '//') + 2);
          $definition = $this->getDefinitionByHost($host);
          if (empty($definition['backlink'])) {
              return false;
          }
          $path = str_replace("{k}", $keyword, $definition['backlink']);
          return $url . (substr($url, -1) != '/' ? '/' : '') . $path;
      }
code: public function getBackLinkFromUrlAndKeyword($url, $keyword)
      {
          if ($keyword === API::LABEL_KEYWORD_NOT_DEFINED) {
              return 'https://matomo.org/faq/general/#faq_144';
          }
          $keyword = urlencode($keyword);
          $keyword = str_replace(urlencode('+'), urlencode(' '), $keyword);
          $host    = substr($url, strpos($url, '//') + 2);
          $definition = $this->getDefinitionByHost($host);
          if (empty($definition['backlink'])) {
              return false;
          }
          $path = str_replace("{k}", $keyword, $definition['backlink']);
          return $url . (substr($url, -1) != '/' ? '/' : '') . $path;
      }
code_tokens: public function getBackLinkFromUrlAndKeyword ( $ url , $ keyword ) { if ( $ keyword === API :: LABEL_KEYWORD_NOT_DEFINED ) { return 'https://matomo.org/faq/general/#faq_144' ; } $ keyword = urlencode ( $ keyword ) ; $ keyword = str_replace ( urlencode ( '+' ) , urlencode ( ' ' ) , $ keyword ) ; $ host = substr ( $ url , strpos ( $ url , '//' ) + 2 ) ; $ definition = $ this -> getDefinitionByHost ( $ host ) ; if ( empty ( $ definition [ 'backlink' ] ) ) { return false ; } $ path = str_replace ( "{k}" , $ keyword , $ definition [ 'backlink' ] ) ; return $ url . ( substr ( $ url , - 1 ) != '/' ? '/' : '' ) . $ path ; }
docstring: Return search engine URL for URL and keyword
  
  @see core/DataFiles/SearchEnginges.php
  
  @param string $url Domain name, e.g., search.piwik.org
  @param string $keyword Keyword, e.g., web+analytics
  @return string URL, e.g., http://search.piwik.org/q=web+analytics
docstring_tokens: Return search engine URL for URL and keyword