Skip to content

Commit e678139

Browse files
committed
minor #15949 Fix opening brace placement (laurixyz)
This PR was submitted for the 5.3 branch but it was merged into the 4.4 branch instead. Discussion ---------- Fix opening brace placement The opening brace should go on the same line like it is for another function (is_leap_year) on the same page. Commits ------- 22e8df0 Fix opening brace style
2 parents ad9900c + 22e8df0 commit e678139

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

create_framework/templating.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ that renders a template when there is no specific logic. To keep the same
3838
template as before, request attributes are extracted before the template is
3939
rendered::
4040

41-
function render_template($request)
42-
{
41+
function render_template($request) {
4342
extract($request->attributes->all(), EXTR_SKIP);
4443
ob_start();
4544
include sprintf(__DIR__.'/../src/pages/%s.php', $_route);
@@ -106,8 +105,7 @@ Here is the updated and improved version of our framework::
106105
use Symfony\Component\HttpFoundation\Response;
107106
use Symfony\Component\Routing;
108107

109-
function render_template($request)
110-
{
108+
function render_template($request) {
111109
extract($request->attributes->all(), EXTR_SKIP);
112110
ob_start();
113111
include sprintf(__DIR__.'/../src/pages/%s.php', $_route);

0 commit comments

Comments
 (0)