| @@ -49,11 +49,11 @@ | ||
| 49 | 49 | * |
| 50 | 50 | * @param string $api_profile_timezone API Timezone. |
| 51 | 51 | * @param string $api_profile_name API Profile Name (e.g. @n7TestAcct). |
| 52 | 52 | * @param string $api_profile_change_timezone_url URL to API service where the user can change the timezone. |
| 53 | - * @return mixed WP_Error | true | |
| 53 | + * @return mixed \WP_Error | true | |
| 54 | 54 | */ |
| 55 | - public function timezones_match( $api_profile_timezone = false, $api_profile_name = '', $api_profile_change_timezone_url = '#' ) { | |
| 55 | + public function timezones_match( $api_profile_timezone = '', $api_profile_name = '', $api_profile_change_timezone_url = '#' ) { | |
| 56 | 56 | |
| 57 | 57 | // Pass test if we don't have API access. |
| 58 | 58 | if ( ! $this->base->get_class( 'settings' )->account_connected() ) { |
| 59 | 59 | return true; |
| @@ -109,9 +109,9 @@ | ||
| 109 | 109 | * |
| 110 | 110 | * @since 3.1.1 |
| 111 | 111 | * |
| 112 | 112 | * @param array $settings Settings. |
| 113 | - * @return bool Duplicates | |
| 113 | + * @return false|array Profile ID and Action with duplicates, or false | |
| 114 | 114 | */ |
| 115 | 115 | public function check_for_duplicates( $settings ) { |
| 116 | 116 | |
| 117 | 117 | // Define the status keys to compare. |