@@ -228,6 +228,9 @@ |
||
228 | 228 | return $str; |
229 | 229 | } |
230 | 230 | |
231 | +/** |
|
232 | + * @param string $str |
|
233 | + */ |
|
231 | 234 | function lf2crlf($str) |
232 | 235 | { |
233 | 236 | return mb_ereg_replace("\r\r\n", "\r\n", mb_ereg_replace("\n", "\r\n", $str)); |
@@ -28,6 +28,9 @@ discard block |
||
28 | 28 | $this->translator = $this->initTranslator($translator); |
29 | 29 | } |
30 | 30 | |
31 | + /** |
|
32 | + * @param boolean $request |
|
33 | + */ |
|
31 | 34 | private function initRequest($request) |
32 | 35 | { |
33 | 36 | if ($request) { |
@@ -37,6 +40,9 @@ discard block |
||
37 | 40 | return new RequestHttp(); |
38 | 41 | } |
39 | 42 | |
43 | + /** |
|
44 | + * @param boolean $translator |
|
45 | + */ |
|
40 | 46 | private function initTranslator($translator) |
41 | 47 | { |
42 | 48 | if ($translator) { |
@@ -113,6 +113,11 @@ discard block |
||
113 | 113 | return $this->nOptions[$pId]['internal_use']; |
114 | 114 | } |
115 | 115 | |
116 | + /** |
|
117 | + * @param integer $pId |
|
118 | + * |
|
119 | + * @return string |
|
120 | + */ |
|
116 | 121 | public function getOptValue($pId) |
117 | 122 | { |
118 | 123 | if ($pId == USR_OPT_SHOWSTATS && |
@@ -129,6 +134,9 @@ discard block |
||
129 | 134 | return false; |
130 | 135 | } |
131 | 136 | |
137 | + /** |
|
138 | + * @param integer $pValue |
|
139 | + */ |
|
132 | 140 | public function setOptVisible($pId, $pValue) |
133 | 141 | { |
134 | 142 | $pId += 0; |
@@ -205,7 +205,7 @@ |
||
205 | 205 | |
206 | 206 | /** |
207 | 207 | * @param string $str |
208 | - * @return mixed |
|
208 | + * @return string |
|
209 | 209 | */ |
210 | 210 | function lf2crlf($str) |
211 | 211 | { |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * Use {page} in link_url als placeholder for the selected page number |
22 | 22 | * and/or {offset} for the 0-based data offset of the selected page. |
23 | 23 | * |
24 | - * @param $link_url |
|
24 | + * @param string $link_url |
|
25 | 25 | * @param int $min_pages_shown |
26 | 26 | * @param int $max_pages_shown |
27 | 27 | */ |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * @param $current_page |
|
42 | - * @param $total_pages |
|
41 | + * @param double $current_page |
|
42 | + * @param double $total_pages |
|
43 | 43 | * @param bool $page_size |
44 | 44 | */ |
45 | 45 | public function make_from_pagenr($current_page, $total_pages, $page_size = false) |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | /** |
112 | 112 | * @param $page |
113 | - * @param $page_size |
|
113 | + * @param boolean $page_size |
|
114 | 114 | * |
115 | 115 | * @return string |
116 | 116 | */ |
@@ -162,7 +162,7 @@ |
||
162 | 162 | } |
163 | 163 | |
164 | 164 | /** |
165 | - * @param int|bool $privilege |
|
165 | + * @param integer $privilege |
|
166 | 166 | * @return bool |
167 | 167 | */ |
168 | 168 | public function hasAdminPriv($privilege = false) |
@@ -162,7 +162,7 @@ |
||
162 | 162 | } |
163 | 163 | |
164 | 164 | /** |
165 | - * @param int|bool $privilege |
|
165 | + * @param integer $privilege |
|
166 | 166 | * @return bool |
167 | 167 | */ |
168 | 168 | public function hasAdminPriv($privilege = false) |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | /** |
100 | 100 | * @param $filename |
101 | 101 | * @param $maxLength |
102 | - * @return bool|string |
|
102 | + * @return false|string |
|
103 | 103 | */ |
104 | 104 | function read_file($filename, $maxLength = 4096) |
105 | 105 | { |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | * format number with 1000s dots |
266 | 266 | * |
267 | 267 | * @param $n |
268 | - * @return mixed|string |
|
268 | + * @return string |
|
269 | 269 | */ |
270 | 270 | function number1000($n) |
271 | 271 | { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
44 | - * @param $path |
|
44 | + * @param string $path |
|
45 | 45 | * @return TranslationStruct[] |
46 | 46 | */ |
47 | 47 | private function readCrowdinCsv($path) |