original_string: public function getMainUrl($url)
      {
          $social  = $this->getSocialNetworkFromDomain($url);
          foreach ($this->getDefinitions() as $domain => $name) {
  
              if ($name == $social) {
  
                  return $domain;
              }
          }
          return $url;
      }
code: public function getMainUrl($url)
      {
          $social  = $this->getSocialNetworkFromDomain($url);
          foreach ($this->getDefinitions() as $domain => $name) {
  
              if ($name == $social) {
  
                  return $domain;
              }
          }
          return $url;
      }
code_tokens: public function getMainUrl ( $ url ) { $ social = $ this -> getSocialNetworkFromDomain ( $ url ) ; foreach ( $ this -> getDefinitions ( ) as $ domain => $ name ) { if ( $ name == $ social ) { return $ domain ; } } return $ url ; }
docstring: Returns the main url of the social network the given url matches
  
  @param string  $url
  
  @return string
docstring_tokens: Returns the main url of the social network the given url matches