original_string: public function getAssetUrl($path)
      {
          if (false !== strpos($path, '://') || 0 === strpos($path, '//')) {
              return $path;
          }
  
          if (!$this->container->has('request')) {
              return $path;
          }
  
          if ('/' !== substr($path, 0, 1)) {
              $path = '/' . $path;
          }
  
          $request = $this->container->get('request');
          $path = $request->getBasePath() . $path;
  
          return $path;
      }
code: public function getAssetUrl($path)
      {
          if (false !== strpos($path, '://') || 0 === strpos($path, '//')) {
              return $path;
          }
  
          if (!$this->container->has('request')) {
              return $path;
          }
  
          if ('/' !== substr($path, 0, 1)) {
              $path = '/' . $path;
          }
  
          $request = $this->container->get('request');
          $path = $request->getBasePath() . $path;
  
          return $path;
      }
code_tokens: public function getAssetUrl ( $ path ) { if ( false !== strpos ( $ path , '://' ) || 0 === strpos ( $ path , '//' ) ) { return $ path ; } if ( ! $ this -> container -> has ( 'request' ) ) { return $ path ; } if ( '/' !== substr ( $ path , 0 , 1 ) ) { $ path = '/' . $ path ; } $ request = $ this -> container -> get ( 'request' ) ; $ path = $ request -> getBasePath ( ) . $ path ; return $ path ; }
docstring: Returns the public path of an asset
  
  @param string $path
  
  @return string
docstring_tokens: Returns the public path of an asset