original_string: public function addView($view, $data = null)
      {
          if(!is_object($view))
              $view = new \erdiko\core\View($view, $data);
          if($data != null)
              $view->setData($data);
          
          $this->appendContent($view->toHtml());
      }
code: public function addView($view, $data = null)
      {
          if(!is_object($view))
              $view = new \erdiko\core\View($view, $data);
          if($data != null)
              $view->setData($data);
          
          $this->appendContent($view->toHtml());
      }
code_tokens: public function addView ( $ view , $ data = null ) { if ( ! is_object ( $ view ) ) $ view = new \ erdiko \ core \ View ( $ view , $ data ) ; if ( $ data != null ) $ view -> setData ( $ data ) ; $ this -> appendContent ( $ view -> toHtml ( ) ) ; }
docstring: Add a view from the current theme with the given data
  
  @param mixed $view, can be a string (view name) or object (view object)
  @param array $data
  @return string $html, view contents
docstring_tokens: Add a view from the current theme with the given data