@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * @param string $username The username |
10 | 10 | * @param int $expire Minutes until token expires (default is 60 minutes) |
11 | 11 | * |
12 | - * @return bool |
|
12 | + * @return false|string |
|
13 | 13 | */ |
14 | 14 | function create_user_token($username, $expire = 60) { |
15 | 15 | $dbprefix = elgg_get_config('dbprefix'); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @param string $token The Token. |
61 | 61 | * |
62 | - * @return mixed The user id attached to the token if not expired or false. |
|
62 | + * @return integer The user id attached to the token if not expired or false. |
|
63 | 63 | */ |
64 | 64 | function validate_user_token($token) { |
65 | 65 | $dbprefix = elgg_get_config('dbprefix'); |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * 'body' - body string |
52 | 52 | * 'params' - additional parameters |
53 | 53 | * 'headers' - HTTP/IMF headers |
54 | - * @return \self |
|
54 | + * @return Email |
|
55 | 55 | */ |
56 | 56 | public static function factory(array $options = []) { |
57 | 57 | $from = elgg_extract('from', $options); |
@@ -91,6 +91,8 @@ discard block |
||
91 | 91 | /** |
92 | 92 | * @see elgg_register_notification_event() |
93 | 93 | * @access private |
94 | + * @param string $type |
|
95 | + * @param string $subtype |
|
94 | 96 | */ |
95 | 97 | public function registerEvent($type, $subtype, array $actions = []) { |
96 | 98 | |
@@ -112,6 +114,8 @@ discard block |
||
112 | 114 | /** |
113 | 115 | * @see elgg_unregister_notification_event() |
114 | 116 | * @access private |
117 | + * @param string $type |
|
118 | + * @param string $subtype |
|
115 | 119 | */ |
116 | 120 | public function unregisterEvent($type, $subtype) { |
117 | 121 | |
@@ -134,6 +138,7 @@ discard block |
||
134 | 138 | /** |
135 | 139 | * @see elgg_register_notification_method() |
136 | 140 | * @access private |
141 | + * @param string $name |
|
137 | 142 | */ |
138 | 143 | public function registerMethod($name) { |
139 | 144 | $this->methods[$name] = $name; |
@@ -142,6 +147,7 @@ discard block |
||
142 | 147 | /** |
143 | 148 | * @see elgg_unregister_notification_method() |
144 | 149 | * @access private |
150 | + * @param string $name |
|
145 | 151 | */ |
146 | 152 | public function unregisterMethod($name) { |
147 | 153 | if (isset($this->methods[$name])) { |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | /** |
125 | 125 | * Get array of UTF-8 (NFC) character replacements. |
126 | 126 | * |
127 | - * @return array |
|
127 | + * @return string |
|
128 | 128 | */ |
129 | 129 | static public function getAsciiTranslitMap() { |
130 | 130 | return [ |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | /** |
258 | 258 | * Tests that "normalizer_normalize" exists and works |
259 | 259 | * |
260 | - * @return bool |
|
260 | + * @return boolean|null |
|
261 | 261 | */ |
262 | 262 | static public function hasNormalizerSupport() { |
263 | 263 | static $ret = null; |
@@ -587,7 +587,7 @@ discard block |
||
587 | 587 | * @elgg_plugin_hook access_collection:display_name access_collection |
588 | 588 | * |
589 | 589 | * @param \Elgg\Hook $hook Hook |
590 | - * @return array |
|
590 | + * @return null|string |
|
591 | 591 | */ |
592 | 592 | function groups_set_access_collection_name(\Elgg\Hook $hook) { |
593 | 593 | |
@@ -811,7 +811,7 @@ discard block |
||
811 | 811 | /** |
812 | 812 | * Runs unit tests for groups |
813 | 813 | * |
814 | - * @return array |
|
814 | + * @return string[] |
|
815 | 815 | */ |
816 | 816 | function groups_test($hook, $type, $value, $params) { |
817 | 817 | $value[] = elgg_get_plugins_path() . 'groups/tests/write_access.php'; |
@@ -90,7 +90,7 @@ |
||
90 | 90 | * may have been deleted/disabled since the event was serialized and |
91 | 91 | * stored in the database. |
92 | 92 | * |
93 | - * @return ElggData|false|null |
|
93 | + * @return string |
|
94 | 94 | */ |
95 | 95 | public function getObject() { |
96 | 96 | return $this->object; |
@@ -223,7 +223,7 @@ |
||
223 | 223 | * @param \DatabaseException $exception The exception to handle |
224 | 224 | * @param string $default The value to return if the table doesn't exist yet |
225 | 225 | * |
226 | - * @return mixed |
|
226 | + * @return string|null |
|
227 | 227 | * |
228 | 228 | * @throws \DatabaseException |
229 | 229 | */ |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * Recursively list through a directory tree producing a hash of all installed files |
49 | 49 | * |
50 | 50 | * @param starting dir $dir |
51 | - * @param buffer $buffer |
|
51 | + * @param string $dir |
|
52 | 52 | */ |
53 | 53 | function diagnostics_md5_dir($dir) { |
54 | 54 | $extensions_allowed = ['.php', '.js', '.css']; |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | * (Unless the entire query is < ft_min_word_chars, in which case |
284 | 284 | * it's taken literally.) |
285 | 285 | * |
286 | - * @param array $query |
|
286 | + * @param string $query |
|
287 | 287 | * @param str $format Return as an array or a string |
288 | 288 | * @return mixed |
289 | 289 | */ |
@@ -307,7 +307,6 @@ discard block |
||
307 | 307 | * Passes results, and original params to the view functions for |
308 | 308 | * search type. |
309 | 309 | * |
310 | - * @param array $results |
|
311 | 310 | * @param array $params |
312 | 311 | * @param string $view_type = list, entity or layout |
313 | 312 | * @return string |
@@ -356,7 +355,7 @@ discard block |
||
356 | 355 | * Returns a where clause for a search query. |
357 | 356 | * |
358 | 357 | * @param str $table Prefix for table to search on |
359 | - * @param array $fields Fields to match against |
|
358 | + * @param string[] $fields Fields to match against |
|
360 | 359 | * @param array $params Original search params |
361 | 360 | * @return str |
362 | 361 | */ |