original_string: public function getURL($file_path = null)
      {
          if (!$this->base_url) {
              throw new BaseException('Unable to determine URL');
          }
  
          if (!$file_path) {
              return $this->base_url;
          }
  
          $u = $this->base_url;
          if (substr($u, -1) != '/') {
              $u .= '/';
          }
  
          return $u.$file_path;
      }
code: public function getURL($file_path = null)
      {
          if (!$this->base_url) {
              throw new BaseException('Unable to determine URL');
          }
  
          if (!$file_path) {
              return $this->base_url;
          }
  
          $u = $this->base_url;
          if (substr($u, -1) != '/') {
              $u .= '/';
          }
  
          return $u.$file_path;
      }
code_tokens: public function getURL ( $ file_path = null ) { if ( ! $ this -> base_url ) { throw new BaseException ( 'Unable to determine URL' ) ; } if ( ! $ file_path ) { return $ this -> base_url ; } $ u = $ this -> base_url ; if ( substr ( $ u , - 1 ) != '/' ) { $ u .= '/' ; } return $ u . $ file_path ; }
docstring: Returns how this location or file can be accessed through web
  base url + relative path + file_path.
docstring_tokens: Returns how this location or file can be accessed through web base url + relative path + file_path .