Completed
Push — staging ( 8d1e38...561133 )
by Evan
17:42
created
admin/partials/dashboard-widgets/class.list-activity-widget.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
 		}
55 55
 					
56 56
 		/**
57
-		* Create the function to output our list stats dashboard widget
58
-		*/
57
+		 * Create the function to output our list stats dashboard widget
58
+		 */
59 59
 		function list_stats_dashboard_widget() {
60 60
 				// Get our list data!
61 61
 				// Check for a transient, if not - set one up for one hour
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
 		} 
116 116
 		
117 117
 		/**
118
-		* Create the function to output our account activity dashboard widget
119
-		*/
118
+		 * Create the function to output our account activity dashboard widget
119
+		 */
120 120
 		function account_activity_dashboard_widget() {
121 121
 				// Get our list data!
122 122
 				// Check for a transient, if not - set one up for one hour
Please login to merge, or discard this patch.
admin/partials/ajax/class.ajax.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -154,17 +154,17 @@
 block discarded – undo
154 154
 		public function findMCListIndex( $id, $array, $tag ) {
155 155
 			if( $tag == 'tag' ) {
156 156
 				foreach( $array as $key => $val ) {
157
-					   if ( $val['tag'] === $id ) {
158
-						   return $key;
159
-					   }
160
-				   }
161
-			   return null;
157
+						if ( $val['tag'] === $id ) {
158
+							return $key;
159
+						}
160
+					}
161
+				return null;
162 162
 			} else {
163 163
 				foreach ( $array as $key => $val ) {
164
-				   if ( $val['id'] == $id ) {
165
-					   return $key;
166
-				   }
167
-			   }
164
+					if ( $val['id'] == $id ) {
165
+						return $key;
166
+					}
167
+				}
168 168
 			return null;
169 169
 			}
170 170
 	  	} // end
Please login to merge, or discard this patch.
admin/partials/helpers/init.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@  discard block
 block discarded – undo
7 7
 	class Yikes_Inc_Easy_Mailchimp_Extender_Helper {
8 8
 	
9 9
 			/**
10
-			*	Helper functions to help out with extensions (still fleshing out)
11
-			*	@since 6.0
12
-			*	@ Parameters (array of data)
13
-			*		-	Section ID - id of the section, should be a slug style text ie: 'custom-section'
14
-			*		-	Link Text - Visible text for this link ie: 'Custom Section'
15
-			*		-	Dashicon - class of the icon you would like to use for this link
16
-			**/
10
+			 *	Helper functions to help out with extensions (still fleshing out)
11
+			 *	@since 6.0
12
+			 *	@ Parameters (array of data)
13
+			 *		-	Section ID - id of the section, should be a slug style text ie: 'custom-section'
14
+			 *		-	Link Text - Visible text for this link ie: 'Custom Section'
15
+			 *		-	Dashicon - class of the icon you would like to use for this link
16
+			 **/
17 17
 			public static function add_edit_form_section_link( $link_array=array() ) {
18 18
 				if( !empty( $link_array ) ) {
19 19
 					$link_data = wp_parse_args( array() , $link_array );
@@ -36,17 +36,17 @@  discard block
 block discarded – undo
36 36
 			}
37 37
 			
38 38
 			/**
39
-			*	Helper functions to help out with extensions (still fleshing out)
40
-			*	@since 6.0
41
-			*	@ Parameters:
42
-			*		-	Section ID - id of the section, should be a slug style text ie: 'custom-section'
43
-			*		-	Class - class file to call function from?
44
-			*		-	Main Callback - call back for main section
45
-			*		-	Main Section Title - main section title
46
-			*		-	Sidebar Callback - callback for the sidebar section
47
-			*		-	Sidebar Title - title of the sidebar section
48
-			*		-	Class - class to reference funtions out of (optiona, if left blank functions should be defined in functions.php (or outside of a class))
49
-			**/
39
+			 *	Helper functions to help out with extensions (still fleshing out)
40
+			 *	@since 6.0
41
+			 *	@ Parameters:
42
+			 *		-	Section ID - id of the section, should be a slug style text ie: 'custom-section'
43
+			 *		-	Class - class file to call function from?
44
+			 *		-	Main Callback - call back for main section
45
+			 *		-	Main Section Title - main section title
46
+			 *		-	Sidebar Callback - callback for the sidebar section
47
+			 *		-	Sidebar Title - title of the sidebar section
48
+			 *		-	Class - class to reference funtions out of (optiona, if left blank functions should be defined in functions.php (or outside of a class))
49
+			 **/
50 50
 			public static function add_edit_form_section( $section_array=array() ) {
51 51
 				if( !empty( $section_array ) ) {
52 52
 					$section_data = wp_parse_args( array() , $section_array );
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
 			}
60 60
 			
61 61
 			/**
62
-			*	Check if the custom section is single or two columns (with sidebar)
63
-			*	@since 6.0
64
-			*	@Parameters:
65
-			*		-	Section Data - the array of data associated with the custom field you've set up
66
-			*/
62
+			 *	Check if the custom section is single or two columns (with sidebar)
63
+			 *	@since 6.0
64
+			 *	@Parameters:
65
+			 *		-	Section Data - the array of data associated with the custom field you've set up
66
+			 */
67 67
 			public static function is_custom_section_two_column( $custom_section_data ) {
68 68
 				// print_r( $custom_section_data );
69 69
 				$value = ( isset( $custom_section_data['sidebar_title'] ) && isset( $custom_section_data['sidebar_fields'] ) && !empty( $custom_section_data['sidebar_fields'] ) ) ?  true : false;
Please login to merge, or discard this patch.
admin/partials/helpers/knowledge-base-articles-RSS.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,9 +22,9 @@  discard block
 block discarded – undo
22 22
 		require_once( ABSPATH . WPINC . '/class-feed.php' );
23 23
 		
24 24
 		/** 
25
-		*	KB Article Queries
26
-		*	@since 6.0.3.8
27
-		*/
25
+		 *	KB Article Queries
26
+		 *	@since 6.0.3.8
27
+		 */
28 28
 		
29 29
 		$kb_queries = array(
30 30
 			/* __( 'Latest Articles', 'yikes-inc-easy-mailchimp-extender' ) => esc_url_raw( 'https://yikesplugins.com/feed/?post_type=kbe_knowledgebase&kbe_taxonomy=easy-forms-for-mailchimp' ), */
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
 		);
39 39
 		
40 40
 		/**
41
-		*	Loop over all of our queries set above
42
-		*	@sicne 6.0.3.8
43
-		*/
41
+		 *	Loop over all of our queries set above
42
+		 *	@sicne 6.0.3.8
43
+		 */
44 44
 		foreach( $kb_queries as $article_title => $rss_feed_url ) {
45 45
 			$page = ( isset( $_GET['page'] ) ) ? $_GET['page'] : 'yikes-inc-easy-mailchimp-support';
46 46
 			/* Create the SimplePie object */
Please login to merge, or discard this patch.
admin/partials/view-list.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -356,9 +356,9 @@  discard block
 block discarded – undo
356 356
 									?></ul><?php
357 357
 								}
358 358
 								/**
359
-								*	Custom action hook for our add-ons to hook into
360
-								*	@since 6.0.3.8
361
-								*/
359
+								 *	Custom action hook for our add-ons to hook into
360
+								 *	@since 6.0.3.8
361
+								 */
362 362
 								do_action( 'yikes-mailchimp-list-form-fields-metabox' );
363 363
 							?>
364 364
 							
@@ -385,9 +385,9 @@  discard block
 block discarded – undo
385 385
 									<?php
386 386
 								}
387 387
 								/**
388
-								*	Custom action hook for our add-ons to hook into
389
-								*	@since 6.0.3.8
390
-								*/
388
+								 *	Custom action hook for our add-ons to hook into
389
+								 *	@since 6.0.3.8
390
+								 */
391 391
 								do_action( 'yikes-mailchimp-list-interest-groups-metabox' );
392 392
 							?>
393 393
 							
Please login to merge, or discard this patch.
public/partials/shortcodes/process_form_shortcode.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -162,9 +162,9 @@  discard block
 block discarded – undo
162 162
 	}
163 163
 
164 164
 	/**
165
-	*	If login is required, abort
166
-	*	@since 6.0.3.8
167
-	*/
165
+	 *	If login is required, abort
166
+	 *	@since 6.0.3.8
167
+	 */
168 168
 	if( $form_login_required ) {
169 169
 		if( apply_filters( 'yikes-mailchimp-required-login-requirement', ! is_user_logged_in() ) ) {
170 170
 			ob_start();
@@ -179,9 +179,9 @@  discard block
 block discarded – undo
179 179
 	}
180 180
 
181 181
 	/**
182
-	*	Check if schedule is set for this form
183
-	*	@since 6.0.3.8
184
-	*/
182
+	 *	Check if schedule is set for this form
183
+	 *	@since 6.0.3.8
184
+	 */
185 185
 	if( $form_schedule_state ) {
186 186
 		// store current date
187 187
 		$current_date = strtotime( current_time( 'm/d/Y g:iA' ) );
@@ -234,8 +234,8 @@  discard block
 block discarded – undo
234 234
 	}
235 235
 
236 236
 	/**
237
-	*	Check for form inline parameter
238
-	*/
237
+	 *	Check for form inline parameter
238
+	 */
239 239
 	$form_inline = ( isset( $atts['inline'] ) && ( $atts['inline'] == 1 || $atts['inline'] == 'true' ) ) ? true : false;
240 240
 	// recheck from our form options
241 241
 	if( ! $form_inline ) {
Please login to merge, or discard this patch.
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.