Skip to content

Commit 46ea791

Browse files
committed
Fix coding style
1 parent 5d22fc1 commit 46ea791

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

libraries/Twig.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ class Twig
1919
private $config = [];
2020

2121
private $functions_asis = [
22-
'base_url', 'site_url'
22+
'base_url', 'site_url',
2323
];
2424
private $functions_safe = [
25-
'form_open', 'form_close', 'form_error', 'set_value', 'form_hidden'
25+
'form_open', 'form_close', 'form_error', 'form_hidden', 'set_value',
2626
];
2727

2828
/**
@@ -52,14 +52,14 @@ public function __construct($params = [])
5252

5353
if (isset($params['functions']))
5454
{
55-
$this->functions_asis =
55+
$this->functions_asis =
5656
array_unique(
5757
array_merge($this->functions_asis, $params['functions'])
5858
);
5959
}
6060
if (isset($params['functions_safe']))
6161
{
62-
$this->functions_safe =
62+
$this->functions_safe =
6363
array_unique(
6464
array_merge($this->functions_safe, $params['functions_safe'])
6565
);
@@ -115,7 +115,7 @@ protected function setLoader($loader)
115115

116116
/**
117117
* Registers a Global
118-
*
118+
*
119119
* @param string $name The global name
120120
* @param mixed $value The global value
121121
*/
@@ -127,7 +127,7 @@ public function addGlobal($name, $value)
127127

128128
/**
129129
* Renders Twig Template and Set Output
130-
*
130+
*
131131
* @param string $view Template filename without `.twig`
132132
* @param array $params Array of parameters to pass to the template
133133
*/
@@ -139,7 +139,7 @@ public function display($view, $params = [])
139139

140140
/**
141141
* Renders Twig Template and Returns as String
142-
*
142+
*
143143
* @param string $view Template filename without `.twig`
144144
* @param array $params Array of parameters to pass to the template
145145
* @return string
@@ -217,7 +217,7 @@ public function safe_anchor($uri = '', $title = '', $attributes = [])
217217
{
218218
$uri = html_escape($uri);
219219
$title = html_escape($title);
220-
220+
221221
$new_attr = [];
222222
foreach ($attributes as $key => $val)
223223
{

0 commit comments

Comments
 (0)