original_string: public function getUrl($path) {
          $mapping = $this->mapper->get($path);
  
          if (!$mapping) {
              return false;
          }
  
          try {
              $volume = $this->client->lookup($mapping['fid']);
  
              return $this->client->buildVolumeUrl($volume->getPublicUrl(), $mapping['fid']);
          } catch (SeaweedFSException $e) {
              return false;
          }
      }
code: public function getUrl($path) {
          $mapping = $this->mapper->get($path);
  
          if (!$mapping) {
              return false;
          }
  
          try {
              $volume = $this->client->lookup($mapping['fid']);
  
              return $this->client->buildVolumeUrl($volume->getPublicUrl(), $mapping['fid']);
          } catch (SeaweedFSException $e) {
              return false;
          }
      }
code_tokens: public function getUrl ( $ path ) { $ mapping = $ this -> mapper -> get ( $ path ) ; if ( ! $ mapping ) { return false ; } try { $ volume = $ this -> client -> lookup ( $ mapping [ 'fid' ] ) ; return $ this -> client -> buildVolumeUrl ( $ volume -> getPublicUrl ( ) , $ mapping [ 'fid' ] ) ; } catch ( SeaweedFSException $ e ) { return false ; } }
docstring: Get the public URL of a path.
  
  @param $path
  @return string|bool
docstring_tokens: Get the public URL of a path .