Completed
Push — staging ( 68fed3...485a71 )
by Evan
04:30
created
public/classes/checkbox-integrations.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -210,6 +210,10 @@
 block discarded – undo
210 210
 		*	before continuing
211 211
 		*	@since 6.0.0
212 212
 		*/
213
+
214
+		/**
215
+		 * @param string $type
216
+		 */
213 217
 		public function was_checkbox_checked( $type ) {
214 218
 			// was sign-up checkbox checked - return the value
215 219
 			return ( isset( $_POST[ 'yikes_mailchimp_checkbox_'.$type ] ) && $_POST[ 'yikes_mailchimp_checkbox_'.$type ] == 1 );
Please login to merge, or discard this patch.
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -94,10 +94,10 @@  discard block
 block discarded – undo
94 94
 		}
95 95
 
96 96
 		/**
97
-		* 	Get the checkbox for the given integration and render it on the front end
98
-		* 	@return string
99
-		*	@since 6.0.0
100
-		*/
97
+		 * 	Get the checkbox for the given integration and render it on the front end
98
+		 * 	@return string
99
+		 *	@since 6.0.0
100
+		 */
101 101
 		public function yikes_get_checkbox() {
102 102
 			// enqueue our checkbox styles whenever the checkbox is displayed
103 103
 			wp_enqueue_style( 'yikes-easy-mailchimp-checkbox-integration-styles', plugin_dir_url( __FILE__ ) . '../css/yikes-inc-easy-mailchimp-checkbox-integration.min.css' );
@@ -175,9 +175,9 @@  discard block
 block discarded – undo
175 175
 		}
176 176
 
177 177
 		/**
178
-		* Build merge varaibles array
179
-		*	@since 6.0.0
180
-		*/
178
+		 * Build merge varaibles array
179
+		 *	@since 6.0.0
180
+		 */
181 181
 		public function user_merge_vars( WP_User $user ) {
182 182
 			// start with user_login as name, since that's always known
183 183
 			$merge_vars = array(
@@ -217,10 +217,10 @@  discard block
 block discarded – undo
217 217
 
218 218
 
219 219
 		/**
220
-		*	Alter the registraton complete message
221
-		*	if the registration form checkbox integration is toggled on
222
-		* 	@since 6.0.0
223
-		**/
220
+		 *	Alter the registraton complete message
221
+		 *	if the registration form checkbox integration is toggled on
222
+		 * 	@since 6.0.0
223
+		 **/
224 224
 		public function yikes_reg_complete_msg( $errors, $redirect_to ) {
225 225
 			if( isset( $errors->errors['registered'] ) ) {
226 226
 				$email_error = get_option( 'yikes_register_subscription_error' , '' );
@@ -239,8 +239,8 @@  discard block
 block discarded – undo
239 239
 					unset( $tmp );
240 240
 					delete_option( 'yikes_register_subscription_error' );
241 241
 				}
242
-		   }
243
-		   return $errors;
242
+			}
243
+			return $errors;
244 244
 		}
245 245
 
246 246
 	}
Please login to merge, or discard this patch.
admin/partials/view-list.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -302,9 +302,9 @@
 block discarded – undo
302 302
 									?></ul><?php
303 303
 								}
304 304
 								/**
305
-								*	Custom action hook for our add-ons to hook into
306
-								*	@since 6.0.3.8
307
-								*/
305
+								 *	Custom action hook for our add-ons to hook into
306
+								 *	@since 6.0.3.8
307
+								 */
308 308
 								do_action( 'yikes-mailchimp-list-form-fields-metabox' );
309 309
 							?>
310 310
 
Please login to merge, or discard this patch.
public/partials/shortcodes/process/process_form_submission.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -192,11 +192,11 @@
 block discarded – undo
192 192
 	$merge_variables = apply_filters( 'yikes-mailchimp-before-submission-' . $form_id, $merge_variables );
193 193
 
194 194
 	/**
195
-	* Action hooks fired before API request
196
-	* @since 6.0.5.5
197
-	* @param $merge_variables 	array 	Array of merge variable to use
198
-	* @param $form_id						integer	The form ID to target (eg: 1, 2 etc.)
199
-	*/
195
+	 * Action hooks fired before API request
196
+	 * @since 6.0.5.5
197
+	 * @param $merge_variables 	array 	Array of merge variable to use
198
+	 * @param $form_id						integer	The form ID to target (eg: 1, 2 etc.)
199
+	 */
200 200
 	do_action( 'yikes-mailchimp-before-submission', $merge_variables );
201 201
 	do_action( 'yikes-mailchimp-before-submission-' . $form_id, $merge_variables );
202 202
 
Please login to merge, or discard this patch.