Skip to content

Commit 0c9b2fa

Browse files
committed
Fix code style
1 parent e678139 commit 0c9b2fa

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

create_framework/templating.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ 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) {
41+
function render_template($request)
42+
{
4243
extract($request->attributes->all(), EXTR_SKIP);
4344
ob_start();
4445
include sprintf(__DIR__.'/../src/pages/%s.php', $_route);
@@ -105,7 +106,8 @@ Here is the updated and improved version of our framework::
105106
use Symfony\Component\HttpFoundation\Response;
106107
use Symfony\Component\Routing;
107108

108-
function render_template($request) {
109+
function render_template($request)
110+
{
109111
extract($request->attributes->all(), EXTR_SKIP);
110112
ob_start();
111113
include sprintf(__DIR__.'/../src/pages/%s.php', $_route);
@@ -143,7 +145,8 @@ framework does not need to be modified in any way, create a new
143145
use Symfony\Component\HttpFoundation\Response;
144146
use Symfony\Component\Routing;
145147

146-
function is_leap_year($year = null) {
148+
function is_leap_year($year = null)
149+
{
147150
if (null === $year) {
148151
$year = date('Y');
149152
}

0 commit comments

Comments
 (0)