@@ -13,32 +13,32 @@ |
||
13 | 13 | { |
14 | 14 | parent::templateEngine($config); |
15 | 15 | |
16 | - $d = new Twig_SimpleFunction('d', function ($var) { |
|
16 | + $d = new Twig_SimpleFunction('d', function($var) { |
|
17 | 17 | return d($var); |
18 | 18 | }); |
19 | 19 | |
20 | 20 | $this->getTwig()->addFunction($d); |
21 | 21 | |
22 | - $date = new Twig_SimpleFunction('date', function ($var) { |
|
22 | + $date = new Twig_SimpleFunction('date', function($var) { |
|
23 | 23 | return date($var); |
24 | 24 | }); |
25 | 25 | |
26 | 26 | $this->getTwig()->addFunction($date); |
27 | 27 | |
28 | - $auth = new Twig_SimpleFunction('auth', function () { |
|
28 | + $auth = new Twig_SimpleFunction('auth', function() { |
|
29 | 29 | return $this->container()->get('auth')->access(true); |
30 | 30 | }); |
31 | 31 | |
32 | 32 | $this->getTwig()->addFunction($auth); |
33 | 33 | |
34 | 34 | |
35 | - $active = new Twig_SimpleFunction('active', function ($var) { |
|
35 | + $active = new Twig_SimpleFunction('active', function($var) { |
|
36 | 36 | return $this->container()->get('pagination')->activeClass($var); |
37 | 37 | }); |
38 | 38 | |
39 | 39 | $this->getTwig()->addFunction($active); |
40 | 40 | |
41 | - $strstr = new Twig_SimpleFunction('strstr', function ($var) { |
|
41 | + $strstr = new Twig_SimpleFunction('strstr', function($var) { |
|
42 | 42 | return strstr($var, '<a id="strstr" name="strstr"></a>', true); |
43 | 43 | }); |
44 | 44 |