@@ -58,7 +58,7 @@ |
||
58 | 58 | ]; |
59 | 59 | |
60 | 60 | // add Intl extensions if php5-intl installed |
61 | - if ( class_exists('IntlDateFormatter') ) { |
|
61 | + if (class_exists('IntlDateFormatter')) { |
|
62 | 62 | $intlExtension = new \Twig_Extensions_Extension_Intl; |
63 | 63 | $intlFilters = $intlExtension->getFilters(); |
64 | 64 |
@@ -48,10 +48,10 @@ |
||
48 | 48 | $stringLoader = new \Twig_Extension_StringLoader; |
49 | 49 | $stringLoaderFunc = $stringLoader->getFunctions(); |
50 | 50 | $functions += [ |
51 | - 'template_from_string' => function($template) use ($twig, $stringLoaderFunc) { |
|
51 | + 'template_from_string' => function($template) use ($twig, $stringLoaderFunc) { |
|
52 | 52 | $callable = $stringLoaderFunc['0']->getCallable(); |
53 | 53 | return $callable($twig, $template); |
54 | - } |
|
54 | + } |
|
55 | 55 | ]; |
56 | 56 | |
57 | 57 | // add Text extensions |