@@ -174,7 +174,7 @@ |
||
174 | 174 | * |
175 | 175 | * @param string $key |
176 | 176 | * @param mixed $empty_value |
177 | - * @return mixed The value specified for the option or a default value for the option. |
|
177 | + * @return string The value specified for the option or a default value for the option. |
|
178 | 178 | */ |
179 | 179 | public function get_option( $key, $empty_value = null ) { |
180 | 180 | if ( empty( $this->settings ) ) { |
@@ -122,7 +122,7 @@ |
||
122 | 122 | * |
123 | 123 | * Methods should override this to declare support (or lack of support) for a feature. |
124 | 124 | * |
125 | - * @param $feature string The name of a feature to test support for. |
|
125 | + * @param string $feature string The name of a feature to test support for. |
|
126 | 126 | * @return bool True if the shipping method supports the feature, false otherwise. |
127 | 127 | */ |
128 | 128 | public function supports( $feature ) { |
@@ -64,7 +64,7 @@ |
||
64 | 64 | /** |
65 | 65 | * Get continent code for a country code. |
66 | 66 | * @since 2.6.0 |
67 | - * @param $cc string |
|
67 | + * @param string $cc string |
|
68 | 68 | * @return string |
69 | 69 | */ |
70 | 70 | public function get_continent_code_for_country( $cc ) { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * should be used. It is possible, but the aforementioned are preferred and are the only. |
97 | 97 | * methods that will be maintained going forward. |
98 | 98 | * |
99 | - * @param int|object|WC_Order $order Order to init. |
|
99 | + * @param integer $order Order to init. |
|
100 | 100 | */ |
101 | 101 | public function __construct( $order = 0 ) { |
102 | 102 | $this->prices_include_tax = get_option('woocommerce_prices_include_tax') == 'yes' ? true : false; |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | /** |
110 | 110 | * Init/load the order object. Called from the constructor. |
111 | 111 | * |
112 | - * @param int|object|WC_Order $order Order to init. |
|
112 | + * @param integer $order Order to init. |
|
113 | 113 | */ |
114 | 114 | protected function init( $order ) { |
115 | 115 | if ( is_numeric( $order ) ) { |
@@ -201,7 +201,7 @@ |
||
201 | 201 | /** |
202 | 202 | * Parse file path and see if its remote or local. |
203 | 203 | * @param string $file_path |
204 | - * @return array |
|
204 | + * @return string |
|
205 | 205 | */ |
206 | 206 | public static function parse_file_path( $file_path ) { |
207 | 207 | $wp_uploads = wp_upload_dir(); |
@@ -361,7 +361,7 @@ |
||
361 | 361 | * Check if the home URL is https. If it is, we don't need to do things such as 'force ssl'. |
362 | 362 | * |
363 | 363 | * @since 2.4.13 |
364 | - * @return bool |
|
364 | + * @return string |
|
365 | 365 | */ |
366 | 366 | function wc_site_is_https() { |
367 | 367 | return strstr( get_option( 'home' ), 'https:' ); |
@@ -2270,7 +2270,7 @@ discard block |
||
2270 | 2270 | * |
2271 | 2271 | * @since 2.2 |
2272 | 2272 | * @param string $image_url |
2273 | - * @return int|WP_Error attachment id |
|
2273 | + * @return integer attachment id |
|
2274 | 2274 | */ |
2275 | 2275 | public function upload_product_image( $image_url ) { |
2276 | 2276 | return $this->upload_image_from_url( $image_url, 'product_image' ); |
@@ -2281,7 +2281,7 @@ discard block |
||
2281 | 2281 | * |
2282 | 2282 | * @since 2.5.0 |
2283 | 2283 | * @param string $image_url |
2284 | - * @return int|WP_Error attachment id |
|
2284 | + * @return integer attachment id |
|
2285 | 2285 | */ |
2286 | 2286 | public function upload_product_category_image( $image_url ) { |
2287 | 2287 | return $this->upload_image_from_url( $image_url, 'product_category_image' ); |
@@ -2382,7 +2382,7 @@ discard block |
||
2382 | 2382 | * Set uploaded image as attachment. |
2383 | 2383 | * |
2384 | 2384 | * @since 2.5.0 |
2385 | - * @param array $upload Upload information from wp_upload_bits |
|
2385 | + * @param integer $upload Upload information from wp_upload_bits |
|
2386 | 2386 | * @param int $id Post ID. Default to 0. |
2387 | 2387 | * @return int Attachment ID |
2388 | 2388 | */ |
@@ -204,6 +204,7 @@ |
||
204 | 204 | * What type of request is this? |
205 | 205 | * string $type ajax, frontend or admin. |
206 | 206 | * |
207 | + * @param string $type |
|
207 | 208 | * @return bool |
208 | 209 | */ |
209 | 210 | private function is_request( $type ) { |
@@ -251,6 +251,7 @@ |
||
251 | 251 | |
252 | 252 | /** |
253 | 253 | * Get current page URL for layered nav items. |
254 | + * @param string $taxonomy |
|
254 | 255 | * @return string |
255 | 256 | */ |
256 | 257 | protected function get_page_base_url( $taxonomy ) { |