@@ -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 ) ) { |
@@ -166,6 +166,7 @@ discard block |
||
| 166 | 166 | /** |
| 167 | 167 | * Get attachment images for a specified post and return them. Also make sure |
| 168 | 168 | * their dimensions are at or above a required minimum. |
| 169 | + * @param integer $post_id |
|
| 169 | 170 | */ |
| 170 | 171 | static function from_attachment( $post_id, $width = 200, $height = 200 ) { |
| 171 | 172 | $images = array(); |
@@ -232,7 +233,7 @@ discard block |
||
| 232 | 233 | * format to the other images?_from_*() methods. |
| 233 | 234 | * |
| 234 | 235 | * @param int $post_id The post ID to check |
| 235 | - * @return array containing details of the Featured Image, or empty array if none. |
|
| 236 | + * @return integer|null containing details of the Featured Image, or empty array if none. |
|
| 236 | 237 | */ |
| 237 | 238 | static function from_thumbnail( $post_id, $width = 200, $height = 200 ) { |
| 238 | 239 | $images = array(); |
@@ -687,7 +688,6 @@ discard block |
||
| 687 | 688 | * resized and cropped image. |
| 688 | 689 | * |
| 689 | 690 | * @param string $src |
| 690 | - * @param int $dimension |
|
| 691 | 691 | * @return string Transformed image URL |
| 692 | 692 | */ |
| 693 | 693 | static function fit_image_url( $src, $width, $height ) { |