@@ -46,6 +46,11 @@ discard block |
||
46 | 46 | /* sChaneFreq = {always, hourly, daily, weekly, monthly, yearly, never} |
47 | 47 | * nPriority = {0.0 to 1.0} |
48 | 48 | */ |
49 | + |
|
50 | + /** |
|
51 | + * @param string $sFile |
|
52 | + * @param integer $dLastMod |
|
53 | + */ |
|
49 | 54 | public function write($sFile, $dLastMod, $sChangeFreq = false, $nPriority = 0.5) |
50 | 55 | { |
51 | 56 | if ($sChangeFreq == false) { |
@@ -62,6 +67,9 @@ discard block |
||
62 | 67 | $this->writeInternal($sXML); |
63 | 68 | } |
64 | 69 | |
70 | + /** |
|
71 | + * @param string $str |
|
72 | + */ |
|
65 | 73 | public function writeInternal($str) |
66 | 74 | { |
67 | 75 | global $opt; |
@@ -197,6 +197,9 @@ |
||
197 | 197 | return 0; |
198 | 198 | } |
199 | 199 | |
200 | +/** |
|
201 | + * @param string $domain |
|
202 | + */ |
|
200 | 203 | function is_existent_maildomain($domain) |
201 | 204 | { |
202 | 205 | $smtp_serverlist = []; |
@@ -203,6 +203,9 @@ |
||
203 | 203 | return $str; |
204 | 204 | } |
205 | 205 | |
206 | +/** |
|
207 | + * @param string $str |
|
208 | + */ |
|
206 | 209 | function lf2crlf($str) |
207 | 210 | { |
208 | 211 | return str_replace("\r\r\n", "\r\n", str_replace("\n", "\r\n", $str)); |
@@ -35,6 +35,9 @@ discard block |
||
35 | 35 | $this->init(0, 0); |
36 | 36 | } |
37 | 37 | |
38 | + /** |
|
39 | + * @param boolean $request |
|
40 | + */ |
|
38 | 41 | private function initRequest($request) |
39 | 42 | { |
40 | 43 | if ($request) { |
@@ -44,6 +47,9 @@ discard block |
||
44 | 47 | return new RequestHttp(); |
45 | 48 | } |
46 | 49 | |
50 | + /** |
|
51 | + * @param boolean $translator |
|
52 | + */ |
|
47 | 53 | private function initTranslator($translator) |
48 | 54 | { |
49 | 55 | if ($translator) { |
@@ -39,6 +39,9 @@ |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | |
42 | +/** |
|
43 | + * @param string $path |
|
44 | + */ |
|
42 | 45 | function testforbom($path) |
43 | 46 | { |
44 | 47 | $filestart = file_get_contents($path, false, null, 0, 2); |
@@ -146,8 +146,9 @@ |
||
146 | 146 | <td> |
147 | 147 | <?php |
148 | 148 | foreach ($opt['template']['locales'] AS $k => $lang) { |
149 | - if ($lang['status'] == OC_LOCALE_ACTIVE) |
|
150 | - echo '<a style="text-decoration: none;" href="index.php?locale=' . $k . '"><img src="' . $lang['flag'] . '" alt="' . $lang['name'] . '" title="' . $lang['name'] . '" width="24px" height="18px" /></a> '; |
|
149 | + if ($lang['status'] == OC_LOCALE_ACTIVE) { |
|
150 | + echo '<a style="text-decoration: none;" href="index.php?locale=' . $k . '"><img src="' . $lang['flag'] . '" alt="' . $lang['name'] . '" title="' . $lang['name'] . '" width="24px" height="18px" /></a> '; |
|
151 | + } |
|
151 | 152 | } |
152 | 153 | ?> |
153 | 154 | </td> |
@@ -148,7 +148,7 @@ |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
151 | - * @param $sql |
|
151 | + * @param string $sql |
|
152 | 152 | * @param $bSlave |
153 | 153 | * |
154 | 154 | * @return resource |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | } |
492 | 492 | |
493 | 493 | /** |
494 | - * @param $byte |
|
494 | + * @param integer $byte |
|
495 | 495 | * @param $start |
496 | 496 | * @param $len |
497 | 497 | * |
@@ -508,8 +508,8 @@ discard block |
||
508 | 508 | |
509 | 509 | $CurrentBit = 0; |
510 | 510 | /** |
511 | - * @param $f |
|
512 | - * @param $count |
|
511 | + * @param resource $f |
|
512 | + * @param integer $count |
|
513 | 513 | * |
514 | 514 | * @return number |
515 | 515 | */ |
@@ -564,7 +564,7 @@ discard block |
||
564 | 564 | } |
565 | 565 | |
566 | 566 | /** |
567 | - * @param $n |
|
567 | + * @param integer $n |
|
568 | 568 | * |
569 | 569 | * @return string |
570 | 570 | */ |
@@ -585,7 +585,7 @@ discard block |
||
585 | 585 | |
586 | 586 | /** |
587 | 587 | * @param $d |
588 | - * @param $n |
|
588 | + * @param integer $n |
|
589 | 589 | * |
590 | 590 | * @return string |
591 | 591 | */ |
@@ -91,10 +91,10 @@ discard block |
||
91 | 91 | * |
92 | 92 | */ |
93 | 93 | /** |
94 | - * @param $block |
|
95 | - * @param $message |
|
94 | + * @param string $block |
|
95 | + * @param string $message |
|
96 | 96 | * @param $smarty |
97 | - * @param $line |
|
97 | + * @param integer $line |
|
98 | 98 | * |
99 | 99 | * @return string |
100 | 100 | */ |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | |
269 | 269 | /** |
270 | 270 | * @param $haystack |
271 | - * @param $needles |
|
271 | + * @param string[] $needles |
|
272 | 272 | * |
273 | 273 | * @return bool|int |
274 | 274 | */ |