Completed
Push — staging ( fcb112...90b653 )
by Evan
22:17 queued 05:51
created
public/classes/checkbox-integrations.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -102,10 +102,10 @@  discard block
 block discarded – undo
102 102
 		}
103 103
 			
104 104
 		/**
105
-		* 	Get the checkbox for the given integration and render it on the front end
106
-		* 	@return string
107
-		*	@since 6.0.0
108
-		*/
105
+		 * 	Get the checkbox for the given integration and render it on the front end
106
+		 * 	@return string
107
+		 *	@since 6.0.0
108
+		 */
109 109
 		public function yikes_get_checkbox() {
110 110
 			// enqueue our checkbox styles whenever the checkbox is displayed
111 111
 			wp_enqueue_style( 'yikes-easy-mailchimp-checkbox-integration-styles', plugin_dir_url( __FILE__ ) . '../css/yikes-inc-easy-mailchimp-checkbox-integration.min.css' );
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 		 *	a new integration type is submitted
136 136
 		 *
137 137
 		 *	@since 6.0.0
138
-		**/
138
+		 **/
139 139
 		public function subscribe_user_integration( $email, $type, $merge_vars ) {			
140 140
 			// get checkbox data
141 141
 			$checkbox_options = get_option( 'optin-checkbox-init' , '' );
@@ -198,9 +198,9 @@  discard block
 block discarded – undo
198 198
 		}
199 199
 		
200 200
 		/**
201
-		* Build merge varaibles array
202
-		*	@since 6.0.0
203
-		*/	
201
+		 * Build merge varaibles array
202
+		 *	@since 6.0.0
203
+		 */	
204 204
 		public function user_merge_vars( WP_User $user ) {
205 205
 			// start with user_login as name, since that's always known
206 206
 			$merge_vars = array(
@@ -240,10 +240,10 @@  discard block
 block discarded – undo
240 240
 		
241 241
 		
242 242
 		/**
243
-		*	Alter the registraton complete message	
244
-		*	if the registration form checkbox integration is toggled on
245
-		* 	@since 6.0.0
246
-		**/
243
+		 *	Alter the registraton complete message	
244
+		 *	if the registration form checkbox integration is toggled on
245
+		 * 	@since 6.0.0
246
+		 **/
247 247
 		public function yikes_reg_complete_msg( $errors, $redirect_to ) {
248 248
 			if( isset( $errors->errors['registered'] ) ) {
249 249
 				$email_error = get_option( 'yikes_register_subscription_error' , '' );
@@ -262,8 +262,8 @@  discard block
 block discarded – undo
262 262
 					unset( $tmp );
263 263
 					delete_option( 'yikes_register_subscription_error' );
264 264
 				}
265
-		   }
266
-		   return $errors;
265
+			}
266
+			return $errors;
267 267
 		}
268 268
 		
269 269
 	}
Please login to merge, or discard this patch.
class.easy_digital_downloads_checkout_form-checkbox.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
 		
28 28
 		
29 29
 		/**
30
-		* Outputs a checkbox
31
-		*/
30
+		 * Outputs a checkbox
31
+		 */
32 32
 		public function output_checkbox() {
33 33
 			if( $this->is_user_already_subscribed( $this->type ) == '1' ) {
34 34
 				return;
Please login to merge, or discard this patch.
public/classes/checkbox-integrations/class.comment_form-checkbox.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
 			
25 25
 		
26 26
 		/**
27
-		* Outputs a checkbox, if user is not already subscribed
28
-		*/
27
+		 * Outputs a checkbox, if user is not already subscribed
28
+		 */
29 29
 		public function output_checkbox( $comment_field ) {
30 30
 			if( $this->is_user_already_subscribed( $this->type ) == '1' ) {
31 31
 				return $comment_field;
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 		 *	a new comment is submitted
41 41
 		 *
42 42
 		 *	@since 6.0.0
43
-		**/
43
+		 **/
44 44
 		public function subscribe_from_comment( $comment_id , $comment_approved ) {	
45 45
 			// was sign-up checkbox checked?
46 46
 			if ( $this->was_checkbox_checked( $this->type ) === false ) {
Please login to merge, or discard this patch.
public/classes/checkbox-integrations/class.buddypress_form-checkbox.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
 		}
19 19
 		
20 20
 		/**
21
-		* Outputs a checkbox, if user is not already subscribed
22
-		*/
21
+		 * Outputs a checkbox, if user is not already subscribed
22
+		 */
23 23
 		public function output_checkbox() {
24 24
 			if( $this->is_user_already_subscribed( $this->type ) == '1' ) {
25 25
 				return;
Please login to merge, or discard this patch.
classes/checkbox-integrations/class.woocommerce_checkout_form-checkbox.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,17 +65,17 @@
 block discarded – undo
65 65
 	}
66 66
 	
67 67
 	/**
68
-	* @param int $order_id
69
-	*/
68
+	 * @param int $order_id
69
+	 */
70 70
 	public function save_woocommerce_checkout_checkbox_value( $order_id ) {
71 71
 		// update the order post meta
72 72
 		update_post_meta( $order_id, 'yikes_easy_mailchimp_optin', $this->was_checkbox_checked( $this->type ) );
73 73
 	}
74 74
 	
75 75
 	/**
76
-	* @param int $order_id
77
-	* @return boolean
78
-	*/
76
+	 * @param int $order_id
77
+	 * @return boolean
78
+	 */
79 79
 	public function subscribe_from_woocommerce_checkout( $order_id ) {
80 80
 		$do_optin = get_post_meta( $order_id, 'yikes_easy_mailchimp_optin', true );
81 81
 		if( $do_optin == '1' ) {
Please login to merge, or discard this patch.
public/classes/checkbox-integrations/class.registration_form-checkbox.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
 	}
25 25
 	
26 26
 	/**
27
-	* Outputs a checkbox
28
-	*/
27
+	 * Outputs a checkbox
28
+	 */
29 29
 	public function output_checkbox() {
30 30
 		echo $this->yikes_get_checkbox();
31 31
 	}
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	 * @param int $user_id
37 37
 	 *
38 38
 	 * @return bool|string
39
-	*/
39
+	 */
40 40
 	public function subscribe_from_registration( $user_id ) {
41 41
 		// was sign-up checkbox checked?
42 42
 		if ( $this->was_checkbox_checked( $this->type ) === false ) {
Please login to merge, or discard this patch.
public/classes/checkbox-integrations/class.contact_form_7-checkbox.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
 	}
31 31
 	
32 32
 	/**
33
-	* Registers the CF7 shortcode
33
+	 * Registers the CF7 shortcode
34 34
 	 *
35
-	* @return boolean
36
-	*/
35
+	 * @return boolean
36
+	 */
37 37
 	public function init() {
38 38
 		if( ! function_exists( 'wpcf7_add_shortcode' ) ) {
39 39
 			return false;
@@ -43,21 +43,21 @@  discard block
 block discarded – undo
43 43
 	}
44 44
 	
45 45
 	/**
46
-	* Alter Contact Form 7 data.
47
-	*
48
-	* Adds yikes_mailchimp_checkbox to post data so users can use `yikes_mailchimp_checkbox` in their email templates
49
-	*
50
-	* @param array $data
51
-	* @return array
52
-	*/
46
+	 * Alter Contact Form 7 data.
47
+	 *
48
+	 * Adds yikes_mailchimp_checkbox to post data so users can use `yikes_mailchimp_checkbox` in their email templates
49
+	 *
50
+	 * @param array $data
51
+	 * @return array
52
+	 */
53 53
 	public function alter_cf7_data( $data = array() ) {
54 54
 		$data['yikes_mailchimp_checkbox'] = $this->was_checkbox_checked( $this->type ) ? __( 'Yes', 'yikes-inc-easy-mailchimp-extender' ) : __( 'No', 'yikes-inc-easy-mailchimp-extender' );
55 55
 		return $data;
56 56
 	}
57 57
 	
58 58
 	/**
59
-	* Subscribe from Contact Form 7 Forms
60
-	*/
59
+	 * Subscribe from Contact Form 7 Forms
60
+	 */
61 61
 	public function new_cf7_subscription( $contact_form ) {
62 62
 		// was sign-up checkbox checked?
63 63
 		if ( $this->was_checkbox_checked( $this->type ) === false ) {
Please login to merge, or discard this patch.
public/class-yikes-inc-easy-mailchimp-extender-public.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,10 +73,10 @@  discard block
 block discarded – undo
73 73
 	}
74 74
 	
75 75
 	/**
76
-	*	Create our own custom the_content(); filter to prevent plugins and such from hooking in where not wanted
77
-	*
78
-	*	@since 6.0.3
79
-	*/
76
+	 *	Create our own custom the_content(); filter to prevent plugins and such from hooking in where not wanted
77
+	 *
78
+	 *	@since 6.0.3
79
+	 */
80 80
 	public function yikes_custom_frontend_content_filter() {
81 81
 		add_filter( 'yikes-mailchimp-frontend-content', 'wptexturize' );
82 82
 		add_filter( 'yikes-mailchimp-frontend-content', 'convert_smilies' );
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 	 *	load our checkbox classes
94 94
 	 *
95 95
 	 *	@since 6.0.0
96
-	**/
96
+	 **/
97 97
 	public function load_checkbox_integration_classes() {
98 98
 		// store our options
99 99
 		$integrations = get_option( 'optin-checkbox-init' , '' );
Please login to merge, or discard this patch.
includes/import-export/yikes-easy-mailchimp-export.class.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,9 +48,9 @@
 block discarded – undo
48 48
 				 $first = false;
49 49
 			  }
50 50
 			  
51
-			   $leadArray = (array) $row; // Cast the Object to an array
52
-			   // Add row to file
53
-			   fputcsv( $output_handle, $leadArray );
51
+				$leadArray = (array) $row; // Cast the Object to an array
52
+				// Add row to file
53
+				fputcsv( $output_handle, $leadArray );
54 54
 			}
55 55
 			 
56 56
 			// Close output file stream
Please login to merge, or discard this patch.