@@ -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 | } |
@@ -438,7 +438,7 @@ |
||
438 | 438 | $objecttypes['3'] = 'cachedesc'; |
439 | 439 | $objecttypes['1'] = 'cachelog'; |
440 | 440 | $objecttypes['6'] = 'picture'; |
441 | - $objecttypes['8'] = 'cachelist'; // not implemented yet |
|
441 | + $objecttypes['8'] = 'cachelist'; // not implemented yet |
|
442 | 442 | |
443 | 443 | /* end now a few dynamically loaded constants */ |
444 | 444 |
@@ -67,7 +67,7 @@ |
||
67 | 67 | WHERE option_id=6 AND user_id='&1'", true, $login->userid)) |
68 | 68 | ) { |
69 | 69 | $fullscreen = true; |
70 | - $tpl->popup = true; // disables page header and -frame |
|
70 | + $tpl->popup = true; // disables page header and -frame |
|
71 | 71 | $tpl->popupmargin = false; |
72 | 72 | } else { |
73 | 73 | $fullscreen = false; |
@@ -109,7 +109,7 @@ |
||
109 | 109 | if ((trim($line, " \n") != '' || substr($line, -1) != "\n") |
110 | 110 | && !preg_match("/^ *(\\*|\/\/|#) *\n$/", $line)) { |
111 | 111 | $old_line = $line; |
112 | - $line = rtrim($line); # trims " \t\n\r\0\x0B" |
|
112 | + $line = rtrim($line); # trims " \t\n\r\0\x0B" |
|
113 | 113 | $line = $this->expandTabs($line); |
114 | 114 | $line .= "\n"; |
115 | 115 |