@@ -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 | } |
@@ -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 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | $year = substr($cache['date_created'], 0, 4); |
27 | 27 | if ($year >= 2005 && $year <= date('Y') && ($lat != 0 || $long != 0)) { |
28 | 28 | $years[$year] = true; |
29 | - $liste[$lat][$long]['caches'][$year] ++; |
|
29 | + $liste[$lat][$long]['caches'][$year]++; |
|
30 | 30 | } |
31 | 31 | } |
32 | 32 | mysql_free_result($rs); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | $year = substr($cache['date'], 0, 4); |
51 | 51 | if ($year >= 2005 && $year <= date('Y') && ($lat != 0 || $long != 0)) { |
52 | 52 | $years[$year] = true; |
53 | - $liste[$lat][$long]['logs'][$year] ++; |
|
53 | + $liste[$lat][$long]['logs'][$year]++; |
|
54 | 54 | } |
55 | 55 | } |
56 | 56 | mysql_free_result($rs); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | while ($cache = sql_fetch_assoc($rs)) { |
68 | 68 | $lat = floor($cache['latitude'] / $grid); |
69 | 69 | $long = floor($cache['longitude'] / $grid); |
70 | - $liste[$lat][$long]['caches']['all'] ++; |
|
70 | + $liste[$lat][$long]['caches']['all']++; |
|
71 | 71 | $liste[$lat][$long]['logs']['all'] += $cache['logs']; |
72 | 72 | } |
73 | 73 | mysql_free_result($rs); |