@@ -153,6 +153,7 @@ discard block |
||
153 | 153 | /** |
154 | 154 | * Get attachment images for a specified post and return them. Also make sure |
155 | 155 | * their dimensions are at or above a required minimum. |
156 | + * @param integer $post_id |
|
156 | 157 | */ |
157 | 158 | static function from_attachment( $post_id, $width = 200, $height = 200 ) { |
158 | 159 | $images = array(); |
@@ -545,7 +546,6 @@ discard block |
||
545 | 546 | * resized and cropped image. |
546 | 547 | * |
547 | 548 | * @param string $src |
548 | - * @param int $dimension |
|
549 | 549 | * @return string Transformed image URL |
550 | 550 | */ |
551 | 551 | static function fit_image_url( $src, $width, $height ) { |
@@ -1264,7 +1264,6 @@ |
||
1264 | 1264 | * |
1265 | 1265 | * @since 4.3.0 |
1266 | 1266 | * |
1267 | - * @param WP_REST_Request $request The request sent to the WP REST API. |
|
1268 | 1267 | * |
1269 | 1268 | * @return object |
1270 | 1269 | */ |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * |
46 | 46 | * @param array $allowed_post_types Allowed post types. |
47 | 47 | * |
48 | - * @return array |
|
48 | + * @return string[] |
|
49 | 49 | */ |
50 | 50 | public function allow_bbpress_post_types( $allowed_post_types ) { |
51 | 51 | $allowed_post_types[] = 'forum'; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @param array $allowed_meta_keys Allowed meta keys. |
61 | 61 | * |
62 | - * @return array |
|
62 | + * @return string[] |
|
63 | 63 | */ |
64 | 64 | public function allow_bbpress_public_metadata( $allowed_meta_keys ) { |
65 | 65 | $allowed_meta_keys[] = '_bbp_forum_id'; |
@@ -410,7 +410,7 @@ |
||
410 | 410 | * |
411 | 411 | * @param Mixed $needle the needle. |
412 | 412 | * @param array $haystack the haystack. |
413 | - * @return is the needle not in the haystack? |
|
413 | + * @return boolean the needle not in the haystack? |
|
414 | 414 | */ |
415 | 415 | protected function negative_in_array( $needle, $haystack ) { |
416 | 416 | if ( in_array( $needle, $haystack, true ) ) { |