original_string: public function addViewPath($path)
      {
          $this->viewPath = (array) $this->viewPath;
  
          if (is_array($path)) {
              $this->viewPath = array_merge($path, $this->viewPath);
          }
          else {
              array_unshift($this->viewPath, $path);
          }
      }
code: public function addViewPath($path)
      {
          $this->viewPath = (array) $this->viewPath;
  
          if (is_array($path)) {
              $this->viewPath = array_merge($path, $this->viewPath);
          }
          else {
              array_unshift($this->viewPath, $path);
          }
      }
code_tokens: public function addViewPath ( $ path ) { $ this -> viewPath = ( array ) $ this -> viewPath ; if ( is_array ( $ path ) ) { $ this -> viewPath = array_merge ( $ path , $ this -> viewPath ) ; } else { array_unshift ( $ this -> viewPath , $ path ) ; } }
docstring: Prepends a path on the available view path locations.
  @param string|array $path
  @return void
docstring_tokens: Prepends a path on the available view path locations .