Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-view
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-view
Commits
514d39e4
Commit
514d39e4
authored
3 years ago
by
Marcin Kolanko
Browse files
Options
Downloads
Patches
Plain Diff
refactor(SimplePhpRenderer): change method name
parent
2a37df7d
No related branches found
No related tags found
1 merge request
!5
Feat/add show rendered method
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Renderer/SimplePhpRenderer.php
+2
-2
2 additions, 2 deletions
src/Renderer/SimplePhpRenderer.php
with
2 additions
and
2 deletions
src/Renderer/SimplePhpRenderer.php
+
2
−
2
View file @
514d39e4
...
...
@@ -36,7 +36,7 @@ class SimplePhpRenderer implements Renderer
public
function
render
(
$template
,
array
$params
=
null
)
{
ob_start
();
$this
->
show
_render
ed
(
$template
,
$params
);
$this
->
output
_render
(
$template
,
$params
);
return
ob_get_clean
();
}
...
...
@@ -44,7 +44,7 @@ class SimplePhpRenderer implements Renderer
* @param string $template
* @param array|null $params
*/
public
function
show
_render
ed
(
$template
,
array
$params
=
null
)
public
function
output
_render
(
$template
,
array
$params
=
null
)
{
if
(
$params
!==
null
)
{
extract
(
$params
,
EXTR_SKIP
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment