From 82ffacce1f10846cf8e384741dfad3a1c836775f Mon Sep 17 00:00:00 2001 From: ADmad Date: Thu, 3 Apr 2014 12:55:28 +0530 Subject: [PATCH] Docblock and formatting fixes. --- src/View/View.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/View/View.php b/src/View/View.php index 89c6fe28624..122011731ed 100644 --- a/src/View/View.php +++ b/src/View/View.php @@ -44,7 +44,7 @@ * current view the default app view files will be used. You can set `$this->theme = 'mytheme'` * in your Controller to use the Themes. * - * Example of theme path with `$this->theme = 'SuperHot';` Would be `app/View/Themed/SuperHot/Posts` + * Example of theme path with `$this->theme = 'SuperHot';` Would be `app/Template/Themed/SuperHot/Posts` * * @property \Cake\View\Helper\CacheHelper $Cache * @property \Cake\View\Helper\FormHelper $Form @@ -251,8 +251,8 @@ class View extends Object { * @var array */ protected $_passedVars = array( - 'viewVars', 'autoLayout', 'helpers', 'view', 'layout', 'name', 'theme', 'layoutPath', - 'viewPath', 'plugin', 'passedArgs', 'cacheAction' + 'viewVars', 'autoLayout', 'helpers', 'view', 'layout', 'name', 'theme', + 'layoutPath', 'viewPath', 'plugin', 'passedArgs', 'cacheAction' ); /** @@ -331,7 +331,7 @@ class View extends Object { /** * Constructor - * + * * @param Request $request * @param Response $response * @param EventManager $eventManager @@ -880,7 +880,10 @@ protected function _render($viewFile, $data = array()) { $remainingBlocks = count($this->Blocks->unclosed()); if ($initialBlocks !== $remainingBlocks) { - throw new Error\Exception(sprintf('The "%s" block was left open. Blocks are not allowed to cross files.', $this->Blocks->active())); + throw new Error\Exception(sprintf( + 'The "%s" block was left open. Blocks are not allowed to cross files.', + $this->Blocks->active() + )); } return $content; }