original_string: private static function obfuscateUri($uri)
      {
          $userInfo = $uri->getUserInfo();
  
          if (false !== ($pos = strpos($userInfo, ':'))) {
              return $uri->withUserInfo(substr($userInfo, 0, $pos), '***');
          }
  
          return $uri;
      }
code: private static function obfuscateUri($uri)
      {
          $userInfo = $uri->getUserInfo();
  
          if (false !== ($pos = strpos($userInfo, ':'))) {
              return $uri->withUserInfo(substr($userInfo, 0, $pos), '***');
          }
  
          return $uri;
      }
code_tokens: private static function obfuscateUri ( $ uri ) { $ userInfo = $ uri -> getUserInfo ( ) ; if ( false !== ( $ pos = strpos ( $ userInfo , ':' ) ) ) { return $ uri -> withUserInfo ( substr ( $ userInfo , 0 , $ pos ) , '***' ) ; } return $ uri ; }
docstring: Obfuscates URI if there is an username and a password present
  
  @param UriInterface $uri
  
  @return UriInterface
docstring_tokens: Obfuscates URI if there is an username and a password present