File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ that renders a template when there is no specific logic. To keep the same
38
38
template as before, request attributes are extracted before the template is
39
39
rendered::
40
40
41
- function render_template($request) {
41
+ function render_template($request)
42
+ {
42
43
extract($request->attributes->all(), EXTR_SKIP);
43
44
ob_start();
44
45
include sprintf(__DIR__.'/../src/pages/%s.php', $_route);
@@ -105,7 +106,8 @@ Here is the updated and improved version of our framework::
105
106
use Symfony\Component\HttpFoundation\Response;
106
107
use Symfony\Component\Routing;
107
108
108
- function render_template($request) {
109
+ function render_template($request)
110
+ {
109
111
extract($request->attributes->all(), EXTR_SKIP);
110
112
ob_start();
111
113
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
143
145
use Symfony\Component\HttpFoundation\Response;
144
146
use Symfony\Component\Routing;
145
147
146
- function is_leap_year($year = null) {
148
+ function is_leap_year($year = null)
149
+ {
147
150
if (null === $year) {
148
151
$year = date('Y');
149
152
}
You can’t perform that action at this time.
0 commit comments