Skip to content

Commit ed0edf0

Browse files
committed
Minor formatting cleanup
1 parent c2c9189 commit ed0edf0

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

includes/class-mailchimp-admin.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Class responsible for Admin side functionalities.
3+
* Class responsible for admin side functionalities.
44
*
55
* @package Mailchimp
66
*/
@@ -34,12 +34,13 @@ public function init() {
3434
add_action( 'wp_ajax_mailchimp_sf_oauth_finish', array( $this, 'finish_oauth_process' ) );
3535
}
3636

37-
3837
/**
3938
* Start the OAuth process.
4039
*
4140
* This function is called via AJAX.
42-
* It starts the OAuth process by the calling the OAuth middleware server and sending the response to the front-end.
41+
*
42+
* It starts the OAuth process by the calling the OAuth middleware
43+
* server and sending the response to the front-end.
4344
*/
4445
public function start_oauth_process() {
4546
// Validate the nonce and permissions.
@@ -89,7 +90,9 @@ public function start_oauth_process() {
8990
* Finish the OAuth process.
9091
*
9192
* This function is called via AJAX.
92-
* This function finishes the OAuth process by the sending a temporary token back to the OAuth server.
93+
*
94+
* This function finishes the OAuth process by the sending
95+
* a temporary token back to the OAuth server.
9396
*/
9497
public function finish_oauth_process() {
9598
// Validate the nonce and permissions.
@@ -199,7 +202,7 @@ public function admin_notices() {
199202
return;
200203
}
201204

202-
// display a notice if the access token is invalid/revoked.
205+
// Display a notice if the access token is invalid/revoked.
203206
?>
204207
<div class="notice notice-warning is-dismissible">
205208
<p>
@@ -221,7 +224,7 @@ public function admin_notices() {
221224
/**
222225
* Sanitize variables using sanitize_text_field.
223226
*
224-
* Arrays are sanitized recursively, Non-scalar values are ignored.
227+
* Arrays are sanitized recursively, non-scalar values are ignored.
225228
*
226229
* @param string|array $data Data to sanitize.
227230
* @return string|array

includes/class-mailchimp-data-encryption.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct() {
4646
/**
4747
* Encrypts a value.
4848
*
49-
* If a user-based key is set, that key is used. Otherwise the default key is used.
49+
* If a user-based key is set, that is used. Otherwise the default key is used.
5050
*
5151
* @since x.x.x
5252
*
@@ -73,7 +73,7 @@ public function encrypt( $value ) {
7373
/**
7474
* Decrypts a value.
7575
*
76-
* If a user-based key is set, that key is used. Otherwise the default key is used.
76+
* If a user-based key is set, that is used. Otherwise the default key is used.
7777
*
7878
* @since x.x.x
7979
*

0 commit comments

Comments
 (0)