@@ -190,7 +190,7 @@ |
||
| 190 | 190 | * |
| 191 | 191 | * @param string $event_slug The slug of the event this reaction is for. |
| 192 | 192 | * |
| 193 | - * @return int|false The reaction ID, or false if not created. |
|
| 193 | + * @return integer The reaction ID, or false if not created. |
|
| 194 | 194 | */ |
| 195 | 195 | abstract protected function _create_reaction( $event_slug ); |
| 196 | 196 | } |
@@ -1073,6 +1073,7 @@ |
||
| 1073 | 1073 | * |
| 1074 | 1074 | * @since 2.1.4 |
| 1075 | 1075 | * |
| 1076 | + * @param string[] $post_types |
|
| 1076 | 1077 | * @return array The slugs of the events. |
| 1077 | 1078 | */ |
| 1078 | 1079 | protected function _2_1_4_get_reversal_log_types( $post_types ) { |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | * |
| 104 | 104 | * @param int|string $number The hook number or ID to get the points for. |
| 105 | 105 | * |
| 106 | - * @return int|false The number of points for this instance, or false. |
|
| 106 | + * @return integer The number of points for this instance, or false. |
|
| 107 | 107 | */ |
| 108 | 108 | public function get_points( $number = null ) { |
| 109 | 109 | |
@@ -421,7 +421,7 @@ |
||
| 421 | 421 | * @since 2.0.0 |
| 422 | 422 | * |
| 423 | 423 | * @param string $key The log meta key to match on. |
| 424 | - * @param mixed $value The log meta value to match on. |
|
| 424 | + * @param integer $value The log meta value to match on. |
|
| 425 | 425 | * @param string $new_key The key for the new meta value to add. |
| 426 | 426 | * @param mixed $new_value The new meta value to add. If falsey, new meta isn't added. |
| 427 | 427 | */ |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | * 'default', which will return a list of the most recent points logs, with |
| 295 | 295 | * users excluded according to the general settings. |
| 296 | 296 | * |
| 297 | - * @return WordPoints_Points_Logs_Query|false Logs query instance, or false. |
|
| 297 | + * @return WordPoints_Points_Logs_Query Logs query instance, or false. |
|
| 298 | 298 | */ |
| 299 | 299 | function wordpoints_get_points_logs_query( $points_type, $query_slug = 'default' ) { |
| 300 | 300 | |
@@ -466,6 +466,11 @@ discard block |
||
| 466 | 466 | * @since 1.9.0 |
| 467 | 467 | * |
| 468 | 468 | * @WordPress\action wordpoints_points_log-comment_disapprove |
| 469 | + * @param string $text |
|
| 470 | + * @param integer $points |
|
| 471 | + * @param string $points_type |
|
| 472 | + * @param integer $user_id |
|
| 473 | + * @param string $log_type |
|
| 469 | 474 | */ |
| 470 | 475 | function wordpoints_points_logs_comment_disapprove( $text, $points, $points_type, $user_id, $log_type, $meta ) { |
| 471 | 476 | |
@@ -492,6 +497,11 @@ discard block |
||
| 492 | 497 | * @since 1.9.0 |
| 493 | 498 | * |
| 494 | 499 | * @WordPress\action wordpoints_points_log-post_delete |
| 500 | + * @param string $text |
|
| 501 | + * @param integer $points |
|
| 502 | + * @param string $points_type |
|
| 503 | + * @param integer $user_id |
|
| 504 | + * @param string $log_type |
|
| 495 | 505 | */ |
| 496 | 506 | function wordpoints_points_logs_post_delete( $text, $points, $points_type, $user_id, $log_type, $meta ) { |
| 497 | 507 | |
@@ -363,7 +363,7 @@ |
||
| 363 | 363 | * |
| 364 | 364 | * @param string $type The slug for a points type. |
| 365 | 365 | * |
| 366 | - * @return int|false The minimum for this type of points. False if $type is bad. |
|
| 366 | + * @return integer The minimum for this type of points. False if $type is bad. |
|
| 367 | 367 | */ |
| 368 | 368 | function wordpoints_get_points_minimum( $type ) { |
| 369 | 369 | |
@@ -402,7 +402,7 @@ |
||
| 402 | 402 | * |
| 403 | 403 | * @param int $rank_id The ID of the rank to get the position of. |
| 404 | 404 | * |
| 405 | - * @return int|false The rank's position, or false. |
|
| 405 | + * @return integer The rank's position, or false. |
|
| 406 | 406 | */ |
| 407 | 407 | public function get_rank_position( $rank_id ) { |
| 408 | 408 | |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | * |
| 174 | 174 | * @param mixed $maybe_int The value to convert to an integer. |
| 175 | 175 | * |
| 176 | - * @return int|false False if $maybe_int couldn't reliably be converted to an integer. |
|
| 176 | + * @return integer False if $maybe_int couldn't reliably be converted to an integer. |
|
| 177 | 177 | */ |
| 178 | 178 | function wordpoints_int( &$maybe_int ) { |
| 179 | 179 | |
@@ -969,7 +969,7 @@ discard block |
||
| 969 | 969 | * @since 1.0.1 |
| 970 | 970 | * @since 1.8.0 The $message now supports WP_Error objects. |
| 971 | 971 | * |
| 972 | - * @param string|WP_Error $message The error message. |
|
| 972 | + * @param string $message The error message. |
|
| 973 | 973 | * |
| 974 | 974 | * @return string The error message. |
| 975 | 975 | */ |
@@ -92,6 +92,7 @@ discard block |
||
| 92 | 92 | * |
| 93 | 93 | * @param string $parent_slug The group slug. |
| 94 | 94 | * @param string $slug The slug of the class to deregister. |
| 95 | + * @return void |
|
| 95 | 96 | */ |
| 96 | 97 | public function deregister( $parent_slug, $slug ); |
| 97 | 98 | |
@@ -101,6 +102,7 @@ discard block |
||
| 101 | 102 | * @since 2.1.0 |
| 102 | 103 | * |
| 103 | 104 | * @param string $parent_slug The group slug. |
| 105 | + * @return void |
|
| 104 | 106 | */ |
| 105 | 107 | public function deregister_children( $parent_slug ); |
| 106 | 108 | |