@@ -312,6 +312,10 @@ |
||
312 | 312 | } |
313 | 313 | } |
314 | 314 | |
315 | + /** |
|
316 | + * @param string $expected_meta_key |
|
317 | + * @param integer $expected_meta_value |
|
318 | + */ |
|
315 | 319 | private function assertHasObjectMetaValue( $metas, $order_item_id, $expected_meta_key, $expected_meta_value ) { |
316 | 320 | $has_meta_entry = false; |
317 | 321 | foreach( $metas as $meta ) { |
@@ -1032,6 +1032,9 @@ |
||
1032 | 1032 | return $return; |
1033 | 1033 | } |
1034 | 1034 | |
1035 | + /** |
|
1036 | + * @param string $slug |
|
1037 | + */ |
|
1035 | 1038 | private function ensure_synced_taxonomy( $store, $slug, $type = 'post' ) { |
1036 | 1039 | register_taxonomy( |
1037 | 1040 | $slug, |
@@ -13,6 +13,7 @@ |
||
13 | 13 | |
14 | 14 | /** |
15 | 15 | * Wrapper around `WP_REST_Request` constructor. Injects a `sites/$blog_id` into endpoint string for WPCOM environment |
16 | + * @param string $path |
|
16 | 17 | */ |
17 | 18 | function wp_rest_request( $method, $path ) { |
18 | 19 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
@@ -22,6 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | /** |
24 | 24 | * Scan every PHP in the root |
25 | + * @param string $root |
|
25 | 26 | */ |
26 | 27 | public function scan( $root, $exclude = array() ) { |
27 | 28 | if ( is_dir( $root ) ) { |
@@ -33,6 +34,9 @@ discard block |
||
33 | 34 | } |
34 | 35 | } |
35 | 36 | |
37 | + /** |
|
38 | + * @param string $root |
|
39 | + */ |
|
36 | 40 | public function scan_dir( $root, $exclude = array() ) { |
37 | 41 | |
38 | 42 | if ( is_null( $exclude ) || ! is_array( $exclude ) ) { |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | * @param array $post_types - other post types. |
194 | 194 | * |
195 | 195 | * @see hook 'rest_api_allowed_post_types' |
196 | - * @return array |
|
196 | + * @return string[] |
|
197 | 197 | */ |
198 | 198 | public function allow_rest_api_types( $post_types ) { |
199 | 199 | $post_types[] = self::$post_type_plan; |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | * (because it requires a plan upgrade or Stripe connection), and the |
255 | 255 | * button is a child of a Premium Content block. |
256 | 256 | * |
257 | - * @param WP_Block $block Recurring Payments block instance. |
|
257 | + * @param WP_Block|null $block Recurring Payments block instance. |
|
258 | 258 | * |
259 | 259 | * @return boolean |
260 | 260 | */ |