@@ -93,14 +93,24 @@ |
||
93 | 93 | * So that we can test. |
94 | 94 | */ |
95 | 95 | |
96 | + /** |
|
97 | + * @param string $class |
|
98 | + * @param string $method |
|
99 | + */ |
|
96 | 100 | public function method_exists( $class, $method ) { |
97 | 101 | return method_exists( $class, $method ); |
98 | 102 | } |
99 | 103 | |
104 | + /** |
|
105 | + * @param string $class |
|
106 | + */ |
|
100 | 107 | public function class_exists( $class ) { |
101 | 108 | return class_exists( $class ); |
102 | 109 | } |
103 | 110 | |
111 | + /** |
|
112 | + * @param string $function |
|
113 | + */ |
|
104 | 114 | public function function_exists( $function ) { |
105 | 115 | return function_exists( $function ); |
106 | 116 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | * @param string $url_orig Original URL. |
9 | 9 | * @param array $url_info Pieces of original URL. |
10 | 10 | * |
11 | - * @return bool |
|
11 | + * @return false|string |
|
12 | 12 | */ |
13 | 13 | function jetpack_no_qtranslate_rest_url_redirect( $url_lang, $url_orig, $url_info ) { |
14 | 14 | if ( false !== strpos( $url_info['wp-path'], 'wp-json/jetpack' ) ) { |
@@ -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'; |