original_string: protected function extensionPath($path = '')
      {
          $path = rtrim($path, '/');
  
          if (empty($path)) {
              return rtrim($this->basePath, '/');
          }
  
          return rtrim($this->basePath, '/').'/'.ltrim($path, '/');
      }
code: protected function extensionPath($path = '')
      {
          $path = rtrim($path, '/');
  
          if (empty($path)) {
              return rtrim($this->basePath, '/');
          }
  
          return rtrim($this->basePath, '/').'/'.ltrim($path, '/');
      }
code_tokens: protected function extensionPath ( $ path = '' ) { $ path = rtrim ( $ path , '/' ) ; if ( empty ( $ path ) ) { return rtrim ( $ this -> basePath , '/' ) ; } return rtrim ( $ this -> basePath , '/' ) . '/' . ltrim ( $ path , '/' ) ; }
docstring: Extension path.
  
  @param string $path
  
  @return string
docstring_tokens: Extension path .