Skip to content
Snippets Groups Projects
Commit 514d39e4 authored by Marcin Kolanko's avatar Marcin Kolanko
Browse files

refactor(SimplePhpRenderer): change method name

parent 2a37df7d
No related branches found
No related tags found
1 merge request!5Feat/add show rendered method
This commit is part of merge request !5. Comments created here will be created in the context of that merge request.
...@@ -36,7 +36,7 @@ class SimplePhpRenderer implements Renderer ...@@ -36,7 +36,7 @@ class SimplePhpRenderer implements Renderer
public function render($template, array $params = null) public function render($template, array $params = null)
{ {
ob_start(); ob_start();
$this->show_rendered( $template, $params ); $this->output_render( $template, $params );
return ob_get_clean(); return ob_get_clean();
} }
...@@ -44,7 +44,7 @@ class SimplePhpRenderer implements Renderer ...@@ -44,7 +44,7 @@ class SimplePhpRenderer implements Renderer
* @param string $template * @param string $template
* @param array|null $params * @param array|null $params
*/ */
public function show_rendered($template, array $params = null) public function output_render($template, array $params = null)
{ {
if ($params !== null) { if ($params !== null) {
extract($params, EXTR_SKIP); extract($params, EXTR_SKIP);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment