@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | } |
281 | 281 | |
282 | 282 | /** |
283 | - * @param $menuid |
|
283 | + * @param integer|null $menuid |
|
284 | 284 | * @param $ids |
285 | 285 | * @param $items |
286 | 286 | */ |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | } |
303 | 303 | |
304 | 304 | /** |
305 | - * @return array |
|
305 | + * @return integer[] |
|
306 | 306 | */ |
307 | 307 | public function GetSelectedMenuIds() |
308 | 308 | { |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | 'parent' => MNU_MAP |
81 | 81 | ]; |
82 | 82 | $menuitem[MNU_MAP]['subitems'][] = $menu_map; |
83 | - ++ $menu_map; |
|
83 | + ++$menu_map; |
|
84 | 84 | } |
85 | 85 | } |
86 | 86 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | $rsSubmenu = sqlf("SELECT `id` FROM `sys_menu` WHERE `parent`=0 ORDER BY `parent` ASC, `position` ASC"); |
108 | 108 | while ($rSubmenu = sql_fetch_assoc($rsSubmenu)) { |
109 | 109 | $aMenu[MNU_ROOT]['subitems'][$nPos] = $rSubmenu['id']; |
110 | - $nPos ++; |
|
110 | + $nPos++; |
|
111 | 111 | } |
112 | 112 | sql_free_result($rsSubmenu); |
113 | 113 | fwrite($f, "\n"); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | ); |
145 | 145 | while ($rSubmenu = sql_fetch_assoc($rsSubmenu)) { |
146 | 146 | $aMenu[$r['id']]['subitems'][$nPos] = $rSubmenu['id']; |
147 | - $nPos ++; |
|
147 | + $nPos++; |
|
148 | 148 | } |
149 | 149 | sql_free_result($rsSubmenu); |
150 | 150 | } |
@@ -490,7 +490,7 @@ |
||
490 | 490 | } |
491 | 491 | |
492 | 492 | /** |
493 | - * @return bool |
|
493 | + * @return boolean|null |
|
494 | 494 | */ |
495 | 495 | public function getAnyChanged() |
496 | 496 | { |
@@ -236,8 +236,8 @@ discard block |
||
236 | 236 | * import variables for substition from config2/nodetext/ |
237 | 237 | * |
238 | 238 | * @param $variables |
239 | - * @param $file |
|
240 | - * @param $language |
|
239 | + * @param string $file |
|
240 | + * @param string $language |
|
241 | 241 | * |
242 | 242 | * @return bool |
243 | 243 | */ |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | |
270 | 270 | /** |
271 | 271 | * @param $variables |
272 | - * @param $lang |
|
272 | + * @param string $lang |
|
273 | 273 | * @param $str |
274 | 274 | * |
275 | 275 | * @return string |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @param $name |
|
66 | + * @param string $name |
|
67 | 67 | * @param null $default |
68 | 68 | * |
69 | 69 | * @return mixed|null |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
77 | - * @param $name |
|
77 | + * @param string $name |
|
78 | 78 | * |
79 | 79 | * @return bool |
80 | 80 | */ |
@@ -50,7 +50,7 @@ |
||
50 | 50 | // TODO fix the following if statement, seems corrupted |
51 | 51 | if (strtolower( |
52 | 52 | substr( |
53 | - 'http' + strstr($_SERVER['REFERER'], '://'), |
|
53 | + 'http' +strstr($_SERVER['REFERER'], '://'), |
|
54 | 54 | 0, |
55 | 55 | strlen($opt['page']['absolute_http_url']) |
56 | 56 | ) |
@@ -44,8 +44,8 @@ discard block |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * @param $relBaseDir |
|
48 | - * @param $ext |
|
47 | + * @param string $relBaseDir |
|
48 | + * @param string $ext |
|
49 | 49 | */ |
50 | 50 | private function unlinkFiles($relBaseDir, $ext) |
51 | 51 | { |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
147 | - * @param $sTemplate |
|
147 | + * @param string $sTemplate |
|
148 | 148 | */ |
149 | 149 | private function preCompileTemplate($sTemplate) |
150 | 150 | { |
@@ -80,7 +80,7 @@ |
||
80 | 80 | \set_php_locale(); |
81 | 81 | |
82 | 82 | if ($this->translate->t('INTERNAL_LANG', 'all', 'OcSmarty.class.php', '') !== $sLanguage) { |
83 | - echo 'setlocale() failed to set language to ' . $sLanguage ."\n"; |
|
83 | + echo 'setlocale() failed to set language to ' . $sLanguage . "\n"; |
|
84 | 84 | die("Is the translation of INTERNAL_LANG correct?\n"); |
85 | 85 | } |
86 | 86 |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $opt['session']['mode'] = SAVE_COOKIE; |
64 | 64 | $opt['session']['cookiename'] = 'ocvagrant'; // only with SAVE_COOKIE |
65 | 65 | $opt['session']['path'] = '/'; |
66 | -$opt['session']['domain'] = 'local.team-opencaching.de'; // may be overwritten by $opt['domain'][...]['cookiedomain'] |
|
66 | +$opt['session']['domain'] = 'local.team-opencaching.de'; // may be overwritten by $opt['domain'][...]['cookiedomain'] |
|
67 | 67 | |
68 | 68 | /* If the Referer was sent by the client and the substring was not found, |
69 | 69 | * the embedded session id will be marked as invalid. |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | * Take caution on caching issues (!) |
222 | 222 | */ |
223 | 223 | |
224 | -$opt['map']['towns']['enable'] = true; // for releasing v14 |
|
224 | +$opt['map']['towns']['enable'] = true; // for releasing v14 |
|
225 | 225 | |
226 | 226 | define('MNU_INFO', 1015); |
227 | 227 | define('MNU_TEAMBLOG', 1016); |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | * @param $filename |
285 | 285 | * @param $maxLength |
286 | 286 | * |
287 | - * @return bool|string |
|
287 | + * @return false|string |
|
288 | 288 | */ |
289 | 289 | function read_file($filename, $maxLength = 4096) |
290 | 290 | { |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | * |
454 | 454 | * @param $n |
455 | 455 | * |
456 | - * @return mixed|string |
|
456 | + * @return string |
|
457 | 457 | */ |
458 | 458 | function number1000($n) |
459 | 459 | { |
@@ -241,7 +241,7 @@ |
||
241 | 241 | while ($nCurPos < mb_strlen($str)) { |
242 | 242 | $nNextSep = mb_strlen($str); |
243 | 243 | $sepLength = mb_strlen($sep); |
244 | - for ($nSepPos = 0; $nSepPos < $sepLength; $nSepPos ++) { |
|
244 | + for ($nSepPos = 0; $nSepPos < $sepLength; $nSepPos++) { |
|
245 | 245 | $nThisPos = mb_strpos($str, mb_substr($sep, $nSepPos, 1), $nCurPos); |
246 | 246 | if ($nThisPos !== false && $nNextSep > $nThisPos) { |
247 | 247 | $nNextSep = $nThisPos; |
@@ -56,7 +56,7 @@ |
||
56 | 56 | function nonalpha($str) |
57 | 57 | { |
58 | 58 | $strLength = mb_strlen($str); |
59 | - for ($i = 0; $i < $strLength; $i ++) { |
|
59 | + for ($i = 0; $i < $strLength; $i++) { |
|
60 | 60 | if (!((ord(mb_substr($str, $i, 1)) >= ord('a')) && (ord(mb_substr($str, $i, 1)) <= ord('z')))) { |
61 | 61 | return true; |
62 | 62 | } |