@@ -7,7 +7,7 @@ |
||
7 | 7 | * |
8 | 8 | * @return string |
9 | 9 | */ |
10 | -function smarty_function_repeat(array $params, \OcSmarty &$smarty) |
|
10 | +function smarty_function_repeat(array $params, \OcSmarty & $smarty) |
|
11 | 11 | { |
12 | 12 | return str_repeat($params['string'], $params['count']); |
13 | 13 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | * |
9 | 9 | * @return string |
10 | 10 | */ |
11 | -function smarty_function_season(array $params, \OcSmarty &$smarty) |
|
11 | +function smarty_function_season(array $params, \OcSmarty & $smarty) |
|
12 | 12 | { |
13 | 13 | $seasons = []; |
14 | 14 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * |
19 | 19 | * @return string |
20 | 20 | */ |
21 | -function smarty_outputfilter_session($tpl_output, \OcSmarty &$smarty) |
|
21 | +function smarty_outputfilter_session($tpl_output, \OcSmarty & $smarty) |
|
22 | 22 | { |
23 | 23 | return html_insert_sid($tpl_output); |
24 | 24 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * |
10 | 10 | * @return string |
11 | 11 | */ |
12 | -function smarty_function_array_search(array $params, \OcSmarty &$smarty) |
|
12 | +function smarty_function_array_search(array $params, \OcSmarty & $smarty) |
|
13 | 13 | { |
14 | 14 | if (!is_array($params['haystack'])) { |
15 | 15 | $smarty->assign($params['var'], false); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @return string |
25 | 25 | */ |
26 | -function smarty_block_nocache(array $param, $content, \OcSmarty &$smarty, &$repeat) |
|
26 | +function smarty_block_nocache(array $param, $content, \OcSmarty & $smarty, &$repeat) |
|
27 | 27 | { |
28 | 28 | static $counter = []; |
29 | 29 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | if (!isset($counter[$name])) { |
39 | 39 | $counter[$name] = 0; |
40 | 40 | } |
41 | - $counter[$name] ++; |
|
41 | + $counter[$name]++; |
|
42 | 42 | |
43 | 43 | if ($smarty->_cache_including) { |
44 | 44 | $param = isset($smarty->_cache_info['cached_vars'][$name][$counter[$name]]) ? $smarty->_cache_info['cached_vars'][$name][$counter[$name]] : []; |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * |
10 | 10 | * @return int |
11 | 11 | */ |
12 | -function smarty_function_count(array $params, \OcSmarty &$smarty) |
|
12 | +function smarty_function_count(array $params, \OcSmarty & $smarty) |
|
13 | 13 | { |
14 | 14 | return count($params['array']); |
15 | 15 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * |
10 | 10 | * @return int |
11 | 11 | */ |
12 | -function smarty_function_nccacheid(array $params, \OcSmarty &$smarty) |
|
12 | +function smarty_function_nccacheid(array $params, \OcSmarty & $smarty) |
|
13 | 13 | { |
14 | 14 | return hexdec(mb_substr($params['wp'], 1)); |
15 | 15 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * |
10 | 10 | * @return string |
11 | 11 | */ |
12 | -function smarty_function_coordinput(array $params, \OcSmarty &$smarty) |
|
12 | +function smarty_function_coordinput(array $params, \OcSmarty & $smarty) |
|
13 | 13 | { |
14 | 14 | $prefix = $params['prefix']; |
15 | 15 | $lat = $params['lat'] + 0; |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * |
10 | 10 | * @return bool |
11 | 11 | */ |
12 | -function smarty_function_instr(array $params, \OcSmarty &$smarty) |
|
12 | +function smarty_function_instr(array $params, \OcSmarty & $smarty) |
|
13 | 13 | { |
14 | 14 | return strpos($params['haystack'], $params['needle']) !== false; |
15 | 15 | } |