@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | /** |
139 | 139 | * Check if file exists. |
140 | 140 | * |
141 | - * @param array|string $mFile |
|
141 | + * @param string $mFile |
|
142 | 142 | * |
143 | 143 | * @return boolean TRUE if file exists, FALSE otherwise. |
144 | 144 | */ |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | * @param string $sFrom File or directory. |
341 | 341 | * @param string $sTo File or directory. |
342 | 342 | * |
343 | - * @return integer|boolean Returns the last line on success, and FALSE on failure. |
|
343 | + * @return string|false Returns the last line on success, and FALSE on failure. |
|
344 | 344 | */ |
345 | 345 | public function systemCopy($sFrom, $sTo) |
346 | 346 | { |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | * @param string $sFrom File or directory. |
391 | 391 | * @param string $sTo File or directory. |
392 | 392 | * |
393 | - * @return integer|boolean Returns the last line on success, and FALSE on failure. |
|
393 | + * @return string|false Returns the last line on success, and FALSE on failure. |
|
394 | 394 | */ |
395 | 395 | public function systemRename($sFrom, $sTo) |
396 | 396 | { |
@@ -135,6 +135,9 @@ discard block |
||
135 | 135 | return $valid; |
136 | 136 | } |
137 | 137 | |
138 | + /** |
|
139 | + * @param string $id |
|
140 | + */ |
|
138 | 141 | private static function recover($id) |
139 | 142 | { |
140 | 143 | if (!empty($_SESSION['pfbc'][$id]['form'])) { |
@@ -158,6 +161,9 @@ discard block |
||
158 | 161 | } |
159 | 162 | } |
160 | 163 | |
164 | + /** |
|
165 | + * @param string $id |
|
166 | + */ |
|
161 | 167 | public static function setSessionValue($id, $element, $value) |
162 | 168 | { |
163 | 169 | $_SESSION['pfbc'][$id]['values'][$element] = $value; |
@@ -166,6 +172,7 @@ discard block |
||
166 | 172 | /** |
167 | 173 | * Validation errors are saved in the session after the form submission, and will be displayed to the user |
168 | 174 | * when redirected back to the form. |
175 | + * @param string $id |
|
169 | 176 | */ |
170 | 177 | public static function setError($id, $messages, $element = '') |
171 | 178 | { |
@@ -204,6 +211,9 @@ discard block |
||
204 | 211 | } |
205 | 212 | } |
206 | 213 | |
214 | + /** |
|
215 | + * @param string $id |
|
216 | + */ |
|
207 | 217 | public static function setSuccess($id, $message, $element = '') |
208 | 218 | { |
209 | 219 | return (new Design)->setFlashMsg($message, Design::SUCCESS_TYPE); |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | * |
273 | 273 | * @param string $sStatement |
274 | 274 | * |
275 | - * @return mixed |
|
275 | + * @return string |
|
276 | 276 | */ |
277 | 277 | public function queryFetchColAssoc($sStatement) |
278 | 278 | { |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | /** |
319 | 319 | * Count the number of requests. |
320 | 320 | * |
321 | - * @return float number |
|
321 | + * @return integer number |
|
322 | 322 | */ |
323 | 323 | public static function queryCount() |
324 | 324 | { |
@@ -81,6 +81,9 @@ discard block |
||
81 | 81 | } |
82 | 82 | } |
83 | 83 | |
84 | + /** |
|
85 | + * @param integer $bytes |
|
86 | + */ |
|
84 | 87 | function read($bytes) |
85 | 88 | { |
86 | 89 | return $this->STREAM->read($bytes); |
@@ -90,6 +93,7 @@ discard block |
||
90 | 93 | * Reads an array of Integers from the Stream |
91 | 94 | * |
92 | 95 | * @param int count How many elements should be read |
96 | + * @param integer $count |
|
93 | 97 | * @return Array of Integers |
94 | 98 | */ |
95 | 99 | function readintarray($count) |
@@ -108,6 +112,7 @@ discard block |
||
108 | 112 | * |
109 | 113 | * @param object Reader the StreamReader object |
110 | 114 | * @param boolean enable_cache Enable or disable caching of strings (default on) |
115 | + * @param FileReader|null $Reader |
|
111 | 116 | */ |
112 | 117 | public function __construct($Reader, $enable_cache = true) |
113 | 118 | { |
@@ -184,6 +189,7 @@ discard block |
||
184 | 189 | * |
185 | 190 | * @access private |
186 | 191 | * @param int num Offset number of original string |
192 | + * @param integer $num |
|
187 | 193 | * @return string Requested string if found, otherwise '' |
188 | 194 | */ |
189 | 195 | function get_original_string($num) |
@@ -202,6 +208,7 @@ discard block |
||
202 | 208 | * |
203 | 209 | * @access private |
204 | 210 | * @param int num Offset number of original string |
211 | + * @param integer $num |
|
205 | 212 | * @return string Requested string if found, otherwise '' |
206 | 213 | */ |
207 | 214 | function get_translation_string($num) |
@@ -290,6 +297,7 @@ discard block |
||
290 | 297 | * Sanitize plural form expression for use in PHP eval call. |
291 | 298 | * |
292 | 299 | * @access private |
300 | + * @param string $expr |
|
293 | 301 | * @return string sanitized plural form expression |
294 | 302 | */ |
295 | 303 | function sanitize_plural_expression($expr) |
@@ -395,7 +403,8 @@ discard block |
||
395 | 403 | * @param string single |
396 | 404 | * @param string plural |
397 | 405 | * @param string number |
398 | - * @return translated plural form |
|
406 | + * @param string $single |
|
407 | + * @return string plural form |
|
399 | 408 | */ |
400 | 409 | function ngettext($single, $plural, $number) |
401 | 410 | { |
@@ -106,6 +106,9 @@ |
||
106 | 106 | var $_fd; |
107 | 107 | var $_length; |
108 | 108 | |
109 | + /** |
|
110 | + * @param string $filename |
|
111 | + */ |
|
109 | 112 | public function __construct($filename) |
110 | 113 | { |
111 | 114 | if (file_exists($filename)) { |
@@ -227,7 +227,6 @@ |
||
227 | 227 | /** |
228 | 228 | * Language helper function. |
229 | 229 | * |
230 | - * @param string $sVar [, string $... ] |
|
231 | 230 | * |
232 | 231 | * @return string Returns the text with gettext function or language in an array (this depends on whether a key language was found in the language table). |
233 | 232 | */ |
@@ -88,7 +88,7 @@ |
||
88 | 88 | /** |
89 | 89 | * @param string $sUrl |
90 | 90 | * |
91 | - * @return string|bool The embed URL if id is valid, false otherwise. |
|
91 | + * @return false|string The embed URL if id is valid, false otherwise. |
|
92 | 92 | */ |
93 | 93 | public function getEmbedUrl($sUrl) |
94 | 94 | { |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | /** |
25 | 25 | * @param string $sUrl |
26 | 26 | * |
27 | - * @return string|bool Returns the video embed URL if it was found, FALSE otherwise. |
|
27 | + * @return false|string Returns the video embed URL if it was found, FALSE otherwise. |
|
28 | 28 | */ |
29 | 29 | public function getVideo($sUrl) |
30 | 30 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | /** |
64 | 64 | * @param string $sUrl |
65 | 65 | * |
66 | - * @return int|bool Returns the ID of the video if it was found, FALSE otherwise. |
|
66 | + * @return string|false Returns the ID of the video if it was found, FALSE otherwise. |
|
67 | 67 | */ |
68 | 68 | public function getVideoId($sUrl) |
69 | 69 | { |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * @param string $sUrl |
24 | 24 | * |
25 | - * @return string|bool Returns the embed video URL if found, FALSE otherwise. |
|
25 | + * @return false|string Returns the embed video URL if found, FALSE otherwise. |
|
26 | 26 | */ |
27 | 27 | public function getVideo($sUrl) |
28 | 28 | { |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | /** |
128 | 128 | * @param string $sUrl |
129 | 129 | * |
130 | - * @return int|bool Returns the ID of the video if it was found, FALSE otherwise. |
|
130 | + * @return string|false Returns the ID of the video if it was found, FALSE otherwise. |
|
131 | 131 | */ |
132 | 132 | public function getVideoId($sUrl) |
133 | 133 | { |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * |
142 | 142 | * @param string $sUrl |
143 | 143 | * |
144 | - * @return bool|string |
|
144 | + * @return false|string |
|
145 | 145 | */ |
146 | 146 | public function getEmbedUrl($sUrl) |
147 | 147 | { |