@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | /** |
| 293 | 293 | * Get the current user id |
| 294 | 294 | * |
| 295 | - * @return int |
|
| 295 | + * @return string |
|
| 296 | 296 | */ |
| 297 | 297 | public function get_user_id() { |
| 298 | 298 | if ( is_user_logged_in() ) { |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | /** |
| 326 | 326 | * @param $product_id |
| 327 | 327 | * @param $quantity |
| 328 | - * @param $event |
|
| 328 | + * @param string $event |
|
| 329 | 329 | */ |
| 330 | 330 | public function capture_event_in_session_data( $product_id, $quantity, $event ) { |
| 331 | 331 | |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | /** |
| 182 | 182 | * Return a hosting provider using a set of known constants. |
| 183 | 183 | * |
| 184 | - * @return mixed A host identifier string or false. |
|
| 184 | + * @return string|false A host identifier string or false. |
|
| 185 | 185 | */ |
| 186 | 186 | public function get_hosting_provider_by_known_constant() { |
| 187 | 187 | $hosting_provider_constants = array( |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | /** |
| 210 | 210 | * Return a hosting provider using a set of known classes. |
| 211 | 211 | * |
| 212 | - * @return mixed A host identifier string or false. |
|
| 212 | + * @return string|false A host identifier string or false. |
|
| 213 | 213 | */ |
| 214 | 214 | public function get_hosting_provider_by_known_class() { |
| 215 | 215 | $hosting_provider = false; |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | /** |
| 227 | 227 | * Return a hosting provider using a set of known functions. |
| 228 | 228 | * |
| 229 | - * @return mixed A host identifier string or false. |
|
| 229 | + * @return string|false A host identifier string or false. |
|
| 230 | 230 | */ |
| 231 | 231 | public function get_hosting_provider_by_known_function() { |
| 232 | 232 | $hosting_provider = false; |
@@ -441,7 +441,7 @@ discard block |
||
| 441 | 441 | * |
| 442 | 442 | * @param string $option Option value from the site. |
| 443 | 443 | * @param callable $url_function Function retrieving the URL to normalize. |
| 444 | - * @return mixed|string URL. |
|
| 444 | + * @return callable URL. |
|
| 445 | 445 | */ |
| 446 | 446 | public static function normalize_www_in_url( $option, $url_function ) { |
| 447 | 447 | $url = wp_parse_url( call_user_func( $url_function ) ); |
@@ -149,7 +149,7 @@ |
||
| 149 | 149 | * |
| 150 | 150 | * @access public |
| 151 | 151 | * |
| 152 | - * @return int|null |
|
| 152 | + * @return null|double |
|
| 153 | 153 | */ |
| 154 | 154 | public function get_sync_progress_percentage() { |
| 155 | 155 | if ( ! $this->is_started() || $this->is_finished() ) { |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | * |
| 412 | 412 | * @access public |
| 413 | 413 | * |
| 414 | - * @return int|null |
|
| 414 | + * @return null|double |
|
| 415 | 415 | */ |
| 416 | 416 | public function get_sync_progress_percentage() { |
| 417 | 417 | if ( ! $this->is_started() || $this->is_finished() ) { |
@@ -625,7 +625,7 @@ discard block |
||
| 625 | 625 | * @access private |
| 626 | 626 | * |
| 627 | 627 | * @param string $name Name of the option. |
| 628 | - * @param mixed $default Default value of the option. |
|
| 628 | + * @param integer $default Default value of the option. |
|
| 629 | 629 | * @return mixed Option value. |
| 630 | 630 | */ |
| 631 | 631 | private function get_status_option( $name, $default = null ) { |