original_string: protected function getRootPath(PackageInterface $package)
      {
          $rootPath = $this->vendorDir . '/raulfraile/ladybug-themes/Ladybug/';
  
          if ($this->composer->getPackage()->getName() === 'raulfraile/ladybug') {
              $rootPath = 'data/' . ($package->getType() === self::PACKAGE_TYPE_THEME ? 'themes' : 'plugins') . '/Ladybug/';
          }
  
          $rootPath .= ($package->getType() === self::PACKAGE_TYPE_THEME) ? 'Theme' : 'Plugin';
  
          return $rootPath;
      }
code: protected function getRootPath(PackageInterface $package)
      {
          $rootPath = $this->vendorDir . '/raulfraile/ladybug-themes/Ladybug/';
  
          if ($this->composer->getPackage()->getName() === 'raulfraile/ladybug') {
              $rootPath = 'data/' . ($package->getType() === self::PACKAGE_TYPE_THEME ? 'themes' : 'plugins') . '/Ladybug/';
          }
  
          $rootPath .= ($package->getType() === self::PACKAGE_TYPE_THEME) ? 'Theme' : 'Plugin';
  
          return $rootPath;
      }
code_tokens: protected function getRootPath ( PackageInterface $ package ) { $ rootPath = $ this -> vendorDir . '/raulfraile/ladybug-themes/Ladybug/' ; if ( $ this -> composer -> getPackage ( ) -> getName ( ) === 'raulfraile/ladybug' ) { $ rootPath = 'data/' . ( $ package -> getType ( ) === self :: PACKAGE_TYPE_THEME ? 'themes' : 'plugins' ) . '/Ladybug/' ; } $ rootPath .= ( $ package -> getType ( ) === self :: PACKAGE_TYPE_THEME ) ? 'Theme' : 'Plugin' ; return $ rootPath ; }
docstring: Returns the root installation path for templates.
  
  @param PackageInterface $package
  
  @return string a path relative to the root of the composer.json
docstring_tokens: Returns the root installation path for templates .