original_string: public function getLogoFromUrl($domain)
      {
          $social = $this->getSocialNetworkFromDomain($domain);
          $socialNetworks = $this->getDefinitions();
  
          $filePattern = 'plugins/Morpheus/icons/dist/socials/%s.png';
  
          $socialDomains = array_keys($socialNetworks, $social);
          foreach ($socialDomains as $domain) {
              if (file_exists(PIWIK_INCLUDE_PATH . '/' . sprintf($filePattern, $domain))) {
                  return sprintf($filePattern, $domain);
              }
          }
  
          return sprintf($filePattern, 'xx');
      }
code: public function getLogoFromUrl($domain)
      {
          $social = $this->getSocialNetworkFromDomain($domain);
          $socialNetworks = $this->getDefinitions();
  
          $filePattern = 'plugins/Morpheus/icons/dist/socials/%s.png';
  
          $socialDomains = array_keys($socialNetworks, $social);
          foreach ($socialDomains as $domain) {
              if (file_exists(PIWIK_INCLUDE_PATH . '/' . sprintf($filePattern, $domain))) {
                  return sprintf($filePattern, $domain);
              }
          }
  
          return sprintf($filePattern, 'xx');
      }
code_tokens: public function getLogoFromUrl ( $ domain ) { $ social = $ this -> getSocialNetworkFromDomain ( $ domain ) ; $ socialNetworks = $ this -> getDefinitions ( ) ; $ filePattern = 'plugins/Morpheus/icons/dist/socials/%s.png' ; $ socialDomains = array_keys ( $ socialNetworks , $ social ) ; foreach ( $ socialDomains as $ domain ) { if ( file_exists ( PIWIK_INCLUDE_PATH . '/' . sprintf ( $ filePattern , $ domain ) ) ) { return sprintf ( $ filePattern , $ domain ) ; } } return sprintf ( $ filePattern , 'xx' ) ; }
docstring: Return social network logo path by URL
  
  @param string $domain
  @return string path
  @see plugins/Morpheus/icons/dist/socials/
docstring_tokens: Return social network logo path by URL