Skip to content

Commit

Permalink
[V3.6.3] Refactor: Change whitespace to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsaycooper committed Jan 20, 2021
1 parent 58c5416 commit 819c5c5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions widget.subscribe.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,25 +505,25 @@ private function create_user_api_list_update( $email_list ): array {
return $subscribe_to_lists;
}

private function post_user_profile( $client, $profile_data ): void {
try {
$client->apiPost( 'user', $profile_data );
} catch ( Sailthru_Client_Exception $e ) {
write_log( $e );
}
}
private function post_user_profile( $client, $profile_data ): void {
try {
$client->apiPost( 'user', $profile_data );
} catch ( Sailthru_Client_Exception $e ) {
write_log( $e );
}
}

private function should_send_welcome_template( $custom_fields, array $new_lists ): bool {
return ! empty($custom_fields['sailthru_welcome_template']) && ! empty($new_lists);
}

private function send_template( $client, string $template, string $email, array $vars ): void {
try {
$client->send( $template, $email, $vars );
} catch ( Sailthru_Client_Exception $e ) {
write_log( $e );
}
}
try {
$client->send( $template, $email, $vars );
} catch ( Sailthru_Client_Exception $e ) {
write_log( $e );
}
}

private function filter_out_existing_lists( $profile, array $subscribe_to_lists ): array {
if (empty($profile)) {
Expand Down

0 comments on commit 819c5c5

Please sign in to comment.