Skip to content

Commit

Permalink
Docblock and formatting fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Apr 3, 2014
1 parent 78ce3d4 commit 82ffacc
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/View/View.php
Expand Up @@ -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
Expand Down Expand Up @@ -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'
);

/**
Expand Down Expand Up @@ -331,7 +331,7 @@ class View extends Object {

/**
* Constructor
*
*
* @param Request $request
* @param Response $response
* @param EventManager $eventManager
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 82ffacc

Please sign in to comment.