original_string: public static function getInstallPath($type, $name)
      {
          $locator = Grav::instance()['locator'];
  
          if ($type === 'theme') {
              $install_path = $locator->findResource('themes://', false) . DS . $name;
          } else {
              $install_path = $locator->findResource('plugins://', false) . DS . $name;
          }
          return $install_path;
      }
code: public static function getInstallPath($type, $name)
      {
          $locator = Grav::instance()['locator'];
  
          if ($type === 'theme') {
              $install_path = $locator->findResource('themes://', false) . DS . $name;
          } else {
              $install_path = $locator->findResource('plugins://', false) . DS . $name;
          }
          return $install_path;
      }
code_tokens: public static function getInstallPath ( $ type , $ name ) { $ locator = Grav :: instance ( ) [ 'locator' ] ; if ( $ type === 'theme' ) { $ install_path = $ locator -> findResource ( 'themes://' , false ) . DS . $ name ; } else { $ install_path = $ locator -> findResource ( 'plugins://' , false ) . DS . $ name ; } return $ install_path ; }
docstring: Get the install path for a name and a particular type of package
  
  @param string $type
  @param string $name
  @return string
docstring_tokens: Get the install path for a name and a particular type of package