Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
d1rk committed May 29, 2014
1 parent 3d49008 commit fab7b83
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions controllers/PagesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ class PagesController extends \radium\controllers\BaseController {

public function view() {
$path = func_get_args() ?: array('radium');
$model = $this->model;
$content = $model::load(join('/', $path));
if (!$content) {
return $this->render(array('template' => join('/', $path)));
}
return compact('content');
$model = $this->model;
$content = $model::load(join('/', $path));
if (!$content) {
return $this->render(array('template' => join('/', $path)));
}
return compact('content');
}
}

Expand Down
36 changes: 18 additions & 18 deletions extensions/adapter/converters/Handlebars.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@

class Handlebars extends \lithium\core\Object {

/**
* returns rendered content
*
* @param string $content input content
* @param array $data additional data to be passed into render context
* @param array $options an array with additional options
* @return string content as given
* @filter
*/
public function get($content, $data = array(), array $options = array()) {
$defaults = array('allowed' => true);
$options += $defaults;
$params = compact('content', 'data', 'options');
return $this->_filter(__METHOD__, $params, function($self, $params) {
$renderer = new Renderer($params['content'], $params['data']);
return $renderer->render();
});
}
/**
* returns rendered content
*
* @param string $content input content
* @param array $data additional data to be passed into render context
* @param array $options an array with additional options
* @return string content as given
* @filter
*/
public function get($content, $data = array(), array $options = array()) {
$defaults = array('allowed' => true);
$options += $defaults;
$params = compact('content', 'data', 'options');
return $this->_filter(__METHOD__, $params, function($self, $params) {
$renderer = new Renderer($params['content'], $params['data']);
return $renderer->render();
});
}

}
?>

0 comments on commit fab7b83

Please sign in to comment.