@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * @throws \UnexpectedValueException |
72 | 72 | * @since 1.0 |
73 | 73 | * |
74 | - * @return boolean |
|
74 | + * @return boolean|null |
|
75 | 75 | */ |
76 | 76 | public function check($org, $user) |
77 | 77 | { |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | * @throws \UnexpectedValueException |
165 | 165 | * @since 1.0 |
166 | 166 | * |
167 | - * @return boolean |
|
167 | + * @return boolean|null |
|
168 | 168 | */ |
169 | 169 | public function checkPublic($org, $user) |
170 | 170 | { |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | * @param integer $id The team id. |
201 | 201 | * @param string $user The name of the user. |
202 | 202 | * |
203 | - * @return boolean |
|
203 | + * @return boolean|null |
|
204 | 204 | * |
205 | 205 | * @since 1.0 |
206 | 206 | * @throws \UnexpectedValueException |
@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | * @param string $owner The owner of the GitHub repository. |
402 | 402 | * @param string $repo The name of the GitHub repository. |
403 | 403 | * |
404 | - * @return boolean |
|
404 | + * @return boolean|null |
|
405 | 405 | * |
406 | 406 | * @since 1.0 |
407 | 407 | * @throws \UnexpectedValueException |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * @throws \UnexpectedValueException |
54 | 54 | * @since 1.0 |
55 | 55 | * |
56 | - * @return boolean |
|
56 | + * @return boolean|null |
|
57 | 57 | */ |
58 | 58 | public function get($owner, $repo, $user) |
59 | 59 | { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * |
67 | 67 | * @param string $user The name of the user. |
68 | 68 | * |
69 | - * @return boolean |
|
69 | + * @return boolean|null |
|
70 | 70 | * |
71 | 71 | * @since 1.0 |
72 | 72 | * @throws \UnexpectedValueException |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * @param string $user The name of the user. |
103 | 103 | * @param string $target The name of the user to check is being followed. |
104 | 104 | * |
105 | - * @return boolean |
|
105 | + * @return boolean|null |
|
106 | 106 | * |
107 | 107 | * @since 1.4.0 |
108 | 108 | * @throws \UnexpectedValueException |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * @param string $data PHP Class formatted string to convert. |
76 | 76 | * @param array $options Options used by the formatter. |
77 | 77 | * |
78 | - * @return object Data object. |
|
78 | + * @return boolean Data object. |
|
79 | 79 | * |
80 | 80 | * @since 1.0 |
81 | 81 | */ |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * |
90 | 90 | * @param array $a The array to get as a string. |
91 | 91 | * |
92 | - * @return array |
|
92 | + * @return string |
|
93 | 93 | * |
94 | 94 | * @since 1.0 |
95 | 95 | */ |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * @param string $data XML formatted string to convert. |
52 | 52 | * @param array $options Options used by the formatter. |
53 | 53 | * |
54 | - * @return object Data object. |
|
54 | + * @return stdClass Data object. |
|
55 | 55 | * |
56 | 56 | * @since 1.0 |
57 | 57 | */ |
@@ -41,6 +41,8 @@ discard block |
||
41 | 41 | * @param string haystack |
42 | 42 | * @param string needle (you should validate this with utf8_is_valid) |
43 | 43 | * @param integer offset in characters (from left) |
44 | +* @param string $str |
|
45 | +* @param string $needle |
|
44 | 46 | * @return mixed integer position or FALSE on failure |
45 | 47 | * @see http://www.php.net/strpos |
46 | 48 | * @see utf8_strlen |
@@ -84,6 +86,8 @@ discard block |
||
84 | 86 | * @param string haystack |
85 | 87 | * @param string needle (you should validate this with utf8_is_valid) |
86 | 88 | * @param integer (optional) offset (from left) |
89 | +* @param string $str |
|
90 | +* @param string $needle |
|
87 | 91 | * @return mixed integer position or FALSE on failure |
88 | 92 | * @see http://www.php.net/strrpos |
89 | 93 | * @see utf8_substr |
@@ -148,7 +152,7 @@ discard block |
||
148 | 152 | * @param string |
149 | 153 | * @param integer number of UTF-8 characters offset (from left) |
150 | 154 | * @param integer (optional) length in UTF-8 characters from offset |
151 | -* @return mixed string or FALSE if failure |
|
155 | +* @return string string or FALSE if failure |
|
152 | 156 | * @package utf8 |
153 | 157 | */ |
154 | 158 | function utf8_substr($str, $offset, $length = NULL) { |
@@ -266,7 +270,7 @@ discard block |
||
266 | 270 | * Note: requires utf8_to_unicode and utf8_from_unicode |
267 | 271 | * @author Andreas Gohr <[email protected]> |
268 | 272 | * @param string |
269 | -* @return mixed either string in lowercase or FALSE is UTF-8 invalid |
|
273 | +* @return false|string either string in lowercase or FALSE is UTF-8 invalid |
|
270 | 274 | * @see http://www.php.net/strtolower |
271 | 275 | * @see utf8_to_unicode |
272 | 276 | * @see utf8_from_unicode |
@@ -353,7 +357,7 @@ discard block |
||
353 | 357 | * Note: requires utf8_to_unicode and utf8_from_unicode |
354 | 358 | * @author Andreas Gohr <[email protected]> |
355 | 359 | * @param string |
356 | -* @return mixed either string in lowercase or FALSE is UTF-8 invalid |
|
360 | +* @return false|string either string in lowercase or FALSE is UTF-8 invalid |
|
357 | 361 | * @see http://www.php.net/strtoupper |
358 | 362 | * @see utf8_to_unicode |
359 | 363 | * @see utf8_from_unicode |
@@ -9,6 +9,7 @@ |
||
9 | 9 | * Make a string's first character uppercase |
10 | 10 | * Note: requires utf8_strtoupper |
11 | 11 | * @param string |
12 | +* @param string $str |
|
12 | 13 | * @return string with first character as upper case (if applicable) |
13 | 14 | * @see http://www.php.net/ucfirst |
14 | 15 | * @see utf8_strtoupper |
@@ -362,7 +362,7 @@ |
||
362 | 362 | * Takes a return code from utf8_bad_identify() are returns a message |
363 | 363 | * (in English) explaining what the problem is. |
364 | 364 | * @param int return code from utf8_bad_identify |
365 | -* @return mixed string message or FALSE if return code unknown |
|
365 | +* @return string|false string message or FALSE if return code unknown |
|
366 | 366 | * @see utf8_bad_identify |
367 | 367 | * @package utf8 |
368 | 368 | */ |