@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | /** |
116 | 116 | * Get post types. |
117 | 117 | * |
118 | - * @return array |
|
118 | + * @return string[] |
|
119 | 119 | */ |
120 | 120 | protected function get_post_types() { |
121 | 121 | return array( 'product', 'product_variation' ); |
@@ -817,7 +817,7 @@ discard block |
||
817 | 817 | /** |
818 | 818 | * Save downloadable files. |
819 | 819 | * |
820 | - * @param in $product_id |
|
820 | + * @param integer $product_id |
|
821 | 821 | * @param array $downloads |
822 | 822 | * @param int $variation_id |
823 | 823 | */ |
@@ -115,7 +115,7 @@ |
||
115 | 115 | /** |
116 | 116 | * Get post types. |
117 | 117 | * |
118 | - * @return array |
|
118 | + * @return string[] |
|
119 | 119 | */ |
120 | 120 | protected function get_post_types() { |
121 | 121 | return array( 'product', 'product_variation' ); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * Checks if the passed $json variable is an array and stores it into $this->data... |
25 | 25 | * |
26 | 26 | * @param array $json Partially structured data |
27 | - * @return bool Returns false If the param $json is not an array |
|
27 | + * @return false|null Returns false If the param $json is not an array |
|
28 | 28 | */ |
29 | 29 | private function set_data( $json ) { |
30 | 30 | if ( ! is_array( $json ) ) { |