original_string: public function getPath($path = null, $isPublic = false)
      {
          $path = RouterHelper::normalizeUrl($path);
          $assetFile = $this->skinPath . $path;
  
          if (File::isFile($assetFile)) {
              return $isPublic
                  ? $this->publicSkinPath . $path
                  : $this->skinPath . $path;
          }
  
          return $isPublic
              ? $this->defaultPublicSkinPath . $path
              : $this->defaultSkinPath . $path;
      }
code: public function getPath($path = null, $isPublic = false)
      {
          $path = RouterHelper::normalizeUrl($path);
          $assetFile = $this->skinPath . $path;
  
          if (File::isFile($assetFile)) {
              return $isPublic
                  ? $this->publicSkinPath . $path
                  : $this->skinPath . $path;
          }
  
          return $isPublic
              ? $this->defaultPublicSkinPath . $path
              : $this->defaultSkinPath . $path;
      }
code_tokens: public function getPath ( $ path = null , $ isPublic = false ) { $ path = RouterHelper :: normalizeUrl ( $ path ) ; $ assetFile = $ this -> skinPath . $ path ; if ( File :: isFile ( $ assetFile ) ) { return $ isPublic ? $ this -> publicSkinPath . $ path : $ this -> skinPath . $ path ; } return $ isPublic ? $ this -> defaultPublicSkinPath . $ path : $ this -> defaultSkinPath . $ path ; }
docstring: Looks up a path to a skin-based file, if it doesn't exist, the default path is used.
  @param  string  $path
  @param  boolean $isPublic
  @return string
docstring_tokens: Looks up a path to a skin - based file if it doesn t exist the default path is used .