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
3838template as before, request attributes are extracted before the template is
3939rendered::
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 }
You can’t perform that action at this time.
0 commit comments