@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | /** |
110 | 110 | * Connect to Paypal. |
111 | 111 | * |
112 | - * @return mixed (boolean | string) Message from the transaction status on success or FALSE on failure. |
|
112 | + * @return string (boolean | string) Message from the transaction status on success or FALSE on failure. |
|
113 | 113 | */ |
114 | 114 | protected function getStatus() |
115 | 115 | { |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | /** |
131 | 131 | * Set the data parameters POST from PayPal system. |
132 | 132 | * |
133 | - * @return object this |
|
133 | + * @return Paypal this |
|
134 | 134 | */ |
135 | 135 | protected function setParams() |
136 | 136 | { |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * |
146 | 146 | * @param string $sName |
147 | 147 | * @param string $sValue |
148 | - * @return object this |
|
148 | + * @return Paypal this |
|
149 | 149 | */ |
150 | 150 | protected function setUrlData($sName, $sValue) |
151 | 151 | { |
@@ -19,6 +19,12 @@ |
||
19 | 19 | |
20 | 20 | if (!function_exists('hash_pbkdf2')) |
21 | 21 | { |
22 | + |
|
23 | + /** |
|
24 | + * @param string $algo |
|
25 | + * @param string $salt |
|
26 | + * @param integer $iterations |
|
27 | + */ |
|
22 | 28 | function hash_pbkdf2($algo, $password, $salt, $iterations, $length = 0, $rawOutput = false) |
23 | 29 | { |
24 | 30 | // check for hashing algorithm |
@@ -75,7 +75,6 @@ discard block |
||
75 | 75 | /** |
76 | 76 | * Generate a hash for Cookie Password encryption. |
77 | 77 | * |
78 | - * @param string $sPassword |
|
79 | 78 | * @param integer $iLength Default: 40 |
80 | 79 | * @return string The Password Hash |
81 | 80 | */ |
@@ -99,7 +98,6 @@ discard block |
||
99 | 98 | /** |
100 | 99 | * Generate a user hash. |
101 | 100 | * |
102 | - * @param string $sPassword |
|
103 | 101 | * @param integer $iLength |
104 | 102 | * @param string $sAlgo The algorithm. Only 'whirlpool' or 'sha512' is accepted. |
105 | 103 | * @return string |
@@ -585,7 +585,7 @@ |
||
585 | 585 | * things like j a v a s c r i p t |
586 | 586 | * |
587 | 587 | * @param type |
588 | - * @return type |
|
588 | + * @return string |
|
589 | 589 | */ |
590 | 590 | protected function _compact_exploded_words($matches) |
591 | 591 | { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * The name of the person. |
37 | 37 | * |
38 | 38 | * @param string $sName |
39 | - * @return object this |
|
39 | + * @return QRCode this |
|
40 | 40 | */ |
41 | 41 | public function name($sName) |
42 | 42 | { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * The full name of the person. |
49 | 49 | * |
50 | 50 | * @param string $sFullName |
51 | - * @return object this |
|
51 | + * @return QRCode this |
|
52 | 52 | */ |
53 | 53 | public function fullName($sFullName) |
54 | 54 | { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * Delivery address. |
61 | 61 | * |
62 | 62 | * @param string $sAddress |
63 | - * @return object this |
|
63 | + * @return QRCode this |
|
64 | 64 | */ |
65 | 65 | public function address($sAddress) |
66 | 66 | { |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * Nickname. |
73 | 73 | * |
74 | 74 | * @param string $sNickname |
75 | - * @return object this |
|
75 | + * @return QRCode this |
|
76 | 76 | */ |
77 | 77 | public function nickName($sNickname) |
78 | 78 | { |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * Email address. |
85 | 85 | * |
86 | 86 | * @param string $sMail |
87 | - * @return object this |
|
87 | + * @return QRCode this |
|
88 | 88 | */ |
89 | 89 | public function email($sMail) |
90 | 90 | { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * Work Phone. |
97 | 97 | * |
98 | 98 | * @param string $sVal |
99 | - * @return object this |
|
99 | + * @return QRCode this |
|
100 | 100 | */ |
101 | 101 | public function workPhone($sVal) |
102 | 102 | { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * Home Phone. |
109 | 109 | * |
110 | 110 | * @param string $sVal |
111 | - * @return object this |
|
111 | + * @return QRCode this |
|
112 | 112 | */ |
113 | 113 | public function homePhone($sVal) |
114 | 114 | { |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * URL address. |
121 | 121 | * |
122 | 122 | * @param string $sUrl |
123 | - * @return object this |
|
123 | + * @return QRCode this |
|
124 | 124 | */ |
125 | 125 | public function url($sUrl) |
126 | 126 | { |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * |
135 | 135 | * @param string $sPhone |
136 | 136 | * @param string $sText |
137 | - * @return object this |
|
137 | + * @return QRCode this |
|
138 | 138 | */ |
139 | 139 | public function sms($sPhone, $sText) |
140 | 140 | { |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | * Birthday. |
147 | 147 | * |
148 | 148 | * @param string $sBirthday Date in the format YYYY-MM-DD or ISO 8601 |
149 | - * @return object this |
|
149 | + * @return QRCode this |
|
150 | 150 | */ |
151 | 151 | public function birthday($sBirthday) |
152 | 152 | { |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * Anniversary. |
159 | 159 | * |
160 | 160 | * @param string $sBirthDate Date in the format YYYY-MM-DD or ISO 8601 |
161 | - * @return object this |
|
161 | + * @return QRCode this |
|
162 | 162 | */ |
163 | 163 | public function anniversary($sBirthDate) |
164 | 164 | { |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | * Gender. |
171 | 171 | * |
172 | 172 | * @param character $cSex F = Female. M = Male |
173 | - * @return object this |
|
173 | + * @return QRCode this |
|
174 | 174 | */ |
175 | 175 | public function gender($cSex) |
176 | 176 | { |
@@ -181,8 +181,8 @@ discard block |
||
181 | 181 | /** |
182 | 182 | * A list of "tags" that can be used to describe the object represented by this vCard. |
183 | 183 | * |
184 | - * @param string $sCategory |
|
185 | - * @return object this |
|
184 | + * @param string $sCategories |
|
185 | + * @return QRCode this |
|
186 | 186 | */ |
187 | 187 | public function categories($sCategories) |
188 | 188 | { |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | * The instant messenger (Instant Messaging and Presence Protocol). |
195 | 195 | * |
196 | 196 | * @param string $sVal |
197 | - * @return object this |
|
197 | + * @return QRCode this |
|
198 | 198 | */ |
199 | 199 | public function impp($sVal) |
200 | 200 | { |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | * Photo (avatar). |
207 | 207 | * |
208 | 208 | * @param string $sImgUrl URL of the image. |
209 | - * @return object this |
|
209 | + * @return QRCode this |
|
210 | 210 | * @throws \PH7\Framework\Error\CException\PH7InvalidArgumentException If the image format is invalid. |
211 | 211 | */ |
212 | 212 | public function photo($sImgUrl) |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | * The role, occupation, or business category of the vCard object within an organization. |
227 | 227 | * |
228 | 228 | * @param string $sRole e.g., Executive |
229 | - * @return object this |
|
229 | + * @return QRCode this |
|
230 | 230 | */ |
231 | 231 | public function role($sRole) |
232 | 232 | { |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | * attribute and the X.520 Organization Unit attribute. |
243 | 243 | * |
244 | 244 | * @param string $sOrg e.g., Google;GMail Team;Spam Detection Squad |
245 | - * @return object this |
|
245 | + * @return QRCode this |
|
246 | 246 | */ |
247 | 247 | public function organization($sOrg) |
248 | 248 | { |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | * The supplemental information or a comment that is associated with the vCard. |
255 | 255 | * |
256 | 256 | * @param string $sText |
257 | - * @return object this |
|
257 | + * @return QRCode this |
|
258 | 258 | */ |
259 | 259 | public function note($sText) |
260 | 260 | { |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | * |
268 | 268 | * @param string $sTitle |
269 | 269 | * @param string $sUrl |
270 | - * @return object this |
|
270 | + * @return QRCode this |
|
271 | 271 | */ |
272 | 272 | public function bookmark($sTitle, $sUrl) |
273 | 273 | { |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | * @param string $sLat Latitude |
282 | 282 | * @param string $sLon Longitude |
283 | 283 | * @param integer $iHeight Height |
284 | - * @return object this |
|
284 | + * @return QRCode this |
|
285 | 285 | */ |
286 | 286 | public function geo($sLat, $sLon, $iHeight) |
287 | 287 | { |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | * The language that the person speaks. |
294 | 294 | * |
295 | 295 | * @param string $sLang e.g., en-US |
296 | - * @return object this |
|
296 | + * @return QRCode this |
|
297 | 297 | */ |
298 | 298 | public function lang($sLang) |
299 | 299 | { |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | * @param string $sType |
308 | 308 | * @param string $sSsid |
309 | 309 | * @param string $sPwd |
310 | - * @return object this |
|
310 | + * @return QRCode this |
|
311 | 311 | */ |
312 | 312 | public function wifi($sType, $sSsid, $sPwd) |
313 | 313 | { |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | /** |
319 | 319 | * Generate the QR code. |
320 | 320 | * |
321 | - * @return object this |
|
321 | + * @return QRCode this |
|
322 | 322 | */ |
323 | 323 | public function finish() |
324 | 324 | { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * Count the length of a string and supports the special characters (Asian, Latin, ...). |
78 | 78 | * |
79 | 79 | * @param string $sText |
80 | - * @return string |
|
80 | + * @return integer |
|
81 | 81 | */ |
82 | 82 | public function length($sText) |
83 | 83 | { |
@@ -115,8 +115,8 @@ discard block |
||
115 | 115 | * Test the equality of two strings. |
116 | 116 | * |
117 | 117 | * @personal For the PHP AND C functions, strcmp and strcasecmp returns a positive or negative integer value if they are different and 0 if they are equal. |
118 | - * @param string $text1 |
|
119 | - * @param string $text2 |
|
118 | + * @param string $sText1 |
|
119 | + * @param string $sText2 |
|
120 | 120 | * @return boolean |
121 | 121 | */ |
122 | 122 | public function equals($sText1, $sText2) |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | * @access protected |
288 | 288 | * @param string $sText |
289 | 289 | * @param boolean $bStrip |
290 | - * @return The text parsed by Str::stripTags() method if $bStrip parameter is TRUE, otherwise by Str::htmlSpecialChars method. |
|
290 | + * @return string text parsed by Str::stripTags() method if $bStrip parameter is TRUE, otherwise by Str::htmlSpecialChars method. |
|
291 | 291 | */ |
292 | 292 | protected function CEscape($sText, $bStrip) |
293 | 293 | { |
@@ -314,6 +314,9 @@ discard block |
||
314 | 314 | return htmlspecialchars($sText, ENT_QUOTES, 'utf-8'); |
315 | 315 | } |
316 | 316 | |
317 | + /** |
|
318 | + * @param string $sPattern |
|
319 | + */ |
|
317 | 320 | private static function _regexNormalize($sPattern) |
318 | 321 | { |
319 | 322 | return static::$_sRegexDelimiter . trim($sPattern, static::$_sRegexDelimiter) . static::$_sRegexDelimiter; |
@@ -31,7 +31,6 @@ |
||
31 | 31 | /** |
32 | 32 | * Emit a signal. |
33 | 33 | * |
34 | - * @param mixed $mVar [, string $... ] |
|
35 | 34 | * @return string |
36 | 35 | */ |
37 | 36 | public static function emit() |
@@ -77,6 +77,9 @@ discard block |
||
77 | 77 | } |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param integer $bytes |
|
82 | + */ |
|
80 | 83 | function read($bytes) { |
81 | 84 | return $this->STREAM->read($bytes); |
82 | 85 | } |
@@ -85,6 +88,7 @@ discard block |
||
85 | 88 | * Reads an array of Integers from the Stream |
86 | 89 | * |
87 | 90 | * @param int count How many elements should be read |
91 | + * @param integer $count |
|
88 | 92 | * @return Array of Integers |
89 | 93 | */ |
90 | 94 | function readintarray($count) { |
@@ -102,6 +106,7 @@ discard block |
||
102 | 106 | * |
103 | 107 | * @param object Reader the StreamReader object |
104 | 108 | * @param boolean enable_cache Enable or disable caching of strings (default on) |
109 | + * @param FileReader|null $Reader |
|
105 | 110 | */ |
106 | 111 | function gettext_reader($Reader, $enable_cache = true) { |
107 | 112 | // If there isn't a StreamReader, turn on short circuit mode. |
@@ -176,6 +181,7 @@ discard block |
||
176 | 181 | * |
177 | 182 | * @access private |
178 | 183 | * @param int num Offset number of original string |
184 | + * @param integer $num |
|
179 | 185 | * @return string Requested string if found, otherwise '' |
180 | 186 | */ |
181 | 187 | function get_original_string($num) { |
@@ -193,6 +199,7 @@ discard block |
||
193 | 199 | * |
194 | 200 | * @access private |
195 | 201 | * @param int num Offset number of original string |
202 | + * @param integer $num |
|
196 | 203 | * @return string Requested string if found, otherwise '' |
197 | 204 | */ |
198 | 205 | function get_translation_string($num) { |
@@ -278,6 +285,7 @@ discard block |
||
278 | 285 | * Sanitize plural form expression for use in PHP eval call. |
279 | 286 | * |
280 | 287 | * @access private |
288 | + * @param string $expr |
|
281 | 289 | * @return string sanitized plural form expression |
282 | 290 | */ |
283 | 291 | function sanitize_plural_expression($expr) { |
@@ -375,7 +383,8 @@ discard block |
||
375 | 383 | * @param string single |
376 | 384 | * @param string plural |
377 | 385 | * @param string number |
378 | - * @return translated plural form |
|
386 | + * @param string $single |
|
387 | + * @return string plural form |
|
379 | 388 | */ |
380 | 389 | function ngettext($single, $plural, $number) { |
381 | 390 | if ($this->short_circuit) { |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * Set the default language name. |
53 | 53 | * |
54 | 54 | * @param string $sNewDefLang Prefix of the language. |
55 | - * @return object $this |
|
55 | + * @return Lang $this |
|
56 | 56 | */ |
57 | 57 | public function setDefaultLang($sNewDefLang) |
58 | 58 | { |
@@ -64,8 +64,7 @@ discard block |
||
64 | 64 | /** |
65 | 65 | * Set the user language name. |
66 | 66 | * |
67 | - * @param string $sNewDefaultLang Prefix of the language. |
|
68 | - * @return object $this |
|
67 | + * @return Lang $this |
|
69 | 68 | */ |
70 | 69 | public function setUserLang($sNewUserLang) |
71 | 70 | { |
@@ -100,7 +99,7 @@ discard block |
||
100 | 99 | * @static |
101 | 100 | * @param string $sPath The path. |
102 | 101 | * @param string $sFileName The language name. Default is the constant: 'PH7_LANG_CODE' |
103 | - * @return Valid file name (with the extension). |
|
102 | + * @return string file name (with the extension). |
|
104 | 103 | * @throws \PH7\Framework\Translate\Exception If the language file is not found. |
105 | 104 | */ |
106 | 105 | public static function getJsFile($sPath, $sFileName = PH7_LANG_CODE) |
@@ -188,7 +187,6 @@ discard block |
||
188 | 187 | /** |
189 | 188 | * Language helper function. |
190 | 189 | * |
191 | - * @param string $sVar [, string $... ] |
|
192 | 190 | * @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). |
193 | 191 | */ |
194 | 192 | function t() |