Completed
Push — staging ( 9e32c1...a732ae )
by Evan
32:58 queued 12:50
created
admin/partials/helpers/edit-form-hidden-section-template.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 											<?php
24 24
 										}
25 25
 										$main_field_data = $section_data['main_fields'];
26
-										foreach( $main_field_data as $field ) { 
26
+										foreach( $main_field_data as $field ) {
27 27
 											if( $field['type'] == 'custom' ) {
28 28
 												// execute the custom callback
29 29
 												$field['callback']();
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 												<?php
54 54
 											}
55 55
 											$sidebar_field_data = $section_data['sidebar_fields'];
56
-											foreach( $sidebar_field_data as $field ) { 
56
+											foreach( $sidebar_field_data as $field ) {
57 57
 												if( $field['type'] == 'custom' ) {
58 58
 													// execute the custom callback
59 59
 													$field['callback']();
Please login to merge, or discard this patch.
admin/partials/upgrade-helpers/upgrade-migrate-options.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,9 +112,11 @@
 block discarded – undo
112 112
 												
113 113
 												// update 'date_format' on 'birthday' and 'date' fields
114 114
 												if( isset( $mailchimp_form['fields'][$new_parent_key]['type'] ) && in_array( $mailchimp_form['fields'][$new_parent_key]['type'], array( 'date', 'birthday' ) ) ) {
115
-													if( $mailchimp_form['fields'][$new_parent_key]['type'] == 'date' ) { // date
115
+													if( $mailchimp_form['fields'][$new_parent_key]['type'] == 'date' ) {
116
+// date
116 117
 														$mailchimp_form['fields'][$new_parent_key]['date_format'] = 'MM/DD'; // mailchimp default (can be altered)
117
-													} else { // birthday 
118
+													} else {
119
+// birthday 
118 120
 														$mailchimp_form['fields'][$new_parent_key]['date_format'] = 'MM/DD/YYYY'; // mailchimp default (can be altered)
119 121
 													}
120 122
 												}
Please login to merge, or discard this patch.
public/partials/shortcodes/process_form_shortcode.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -943,7 +943,8 @@
 block discarded – undo
943 943
 
944 944
 						}
945 945
 
946
-					} else { // loop over interest groups
946
+					} else {
947
+// loop over interest groups
947 948
 
948 949
 
949 950
 						// store default choice
Please login to merge, or discard this patch.
public/partials/shortcodes/process/process_form_submission_ajax.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,9 +96,11 @@
 block discarded – undo
96 96
 				$value = date( 'Y-m-d', strtotime( $value ) );
97 97
 			}
98 98
 		}
99
-		if( is_numeric( $merge_tag ) ) { // this is is an interest group!
99
+		if( is_numeric( $merge_tag ) ) {
100
+// this is is an interest group!
100 101
 			$merge_variables['groupings'][] = array( 'id' => $merge_tag , 'groups' => ( is_array( $value ) ) ? $value : array( $value ) );
101
-		} else { // or else it's just a standard merge variable
102
+		} else {
103
+// or else it's just a standard merge variable
102 104
 			$merge_variables[$merge_tag] = $value;
103 105
 		}
104 106
 	}
Please login to merge, or discard this patch.
public/partials/shortcodes/process/process_form_submission.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,9 +92,11 @@
 block discarded – undo
92 92
 					$value = ( '' != $value ) ? date( 'Y-m-d', strtotime( $value ) ) : '';
93 93
 				}
94 94
 			}
95
-			if( is_numeric( $merge_tag ) ) { // this is is an interest group!
95
+			if( is_numeric( $merge_tag ) ) {
96
+// this is is an interest group!
96 97
 				$merge_variables['groupings'][] = array( 'id' => $merge_tag , 'groups' => ( is_array( $value ) ) ? $value : array( $value ) );
97
-			} else { // or else it's just a standard merge variable
98
+			} else {
99
+// or else it's just a standard merge variable
98 100
 				$merge_variables[$merge_tag] = $value;
99 101
 			}
100 102
 		}
Please login to merge, or discard this patch.
public/classes/checkbox-integrations/class.comment_form-checkbox.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 		// declare our integration type
14 14
 		protected $type = 'comment_form';
15 15
 	
16
-		public function __construct() {	
16
+		public function __construct() {
17 17
 			// hooks for outputting the checkbox
18 18
 			add_action( 'thesis_hook_after_comment_box', array( $this, 'output_checkbox' ), 10 );
19 19
 			add_action( 'comment_form_field_comment', array( $this, 'output_checkbox' ), 10 );
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 		 *
42 42
 		 *	@since 6.0.0
43 43
 		**/
44
-		public function subscribe_from_comment( $comment_id , $comment_approved ) {	
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 ) {
47 47
 				return false;
Please login to merge, or discard this patch.
includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,9 +100,9 @@  discard block
 block discarded – undo
100 100
 	*
101 101
 	*  @since 5.6
102 102
 	*/	
103
-	public function yikes_easy_mailchimp_generate_error_log_table() {		
103
+	public function yikes_easy_mailchimp_generate_error_log_table() {
104 104
 		// ensure file_get_contents exists
105
-		if( function_exists( 'file_get_contents' ) ) {	
105
+		if( function_exists( 'file_get_contents' ) ) {
106 106
 			// confirm that our file exists
107 107
 			if( file_exists( YIKES_MC_PATH . 'includes/error_log/yikes-easy-mailchimp-error-log.php' ) ) {
108 108
 				$error_log_contents = file_get_contents( YIKES_MC_PATH . 'includes/error_log/yikes-easy-mailchimp-error-log.php' , true );							
@@ -154,7 +154,8 @@  discard block
 block discarded – undo
154 154
 						</tr>
155 155
 					<?php
156 156
 			}
157
-		} else { // if file_get_contents is disabled server side
157
+		} else {
158
+// if file_get_contents is disabled server side
158 159
 			?>
159 160
 				<!-- table body -->
160 161
 				<tr>
Please login to merge, or discard this patch.
includes/class-yikes-inc-easy-mailchimp-extender-activator.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,8 @@
 block discarded – undo
45 45
 				return;
46 46
 			}   
47 47
 			self::_activate_yikes_easy_mailchimp( $wpdb );
48
-		} else { /* end network activate */
48
+		} else {
49
+/* end network activate */
49 50
 			self::_activate_yikes_easy_mailchimp( $wpdb );
50 51
 		}
51 52
 	}
Please login to merge, or discard this patch.
admin/class-yikes-inc-easy-mailchimp-extender-admin.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -413,8 +413,9 @@  discard block
 block discarded – undo
413 413
 			$create_ticket_response = wp_remote_retrieve_body( $response );
414 414
 
415 415
 			// display it
416
-			if( $create_ticket_response )
417
-				echo $create_ticket_response;
416
+			if( $create_ticket_response ) {
417
+							echo $create_ticket_response;
418
+			}
418 419
 
419 420
 		}
420 421
 
@@ -1160,7 +1161,7 @@  discard block
 block discarded – undo
1160 1161
 			if( isset( $body['msg'] ) && $body['msg'] == "Everything's Chimpy!" ) {
1161 1162
 				update_option( 'yikes-mc-api-validation' , 'valid_api_key' );
1162 1163
 			}
1163
-		}  else {
1164
+		} else {
1164 1165
 			require_once YIKES_MC_PATH . 'includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php';
1165 1166
 			$error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();
1166 1167
 			$error_logging->yikes_easy_mailchimp_write_to_error_log( $api_key_response->get_error_message() , __( "Connecting to MailChimp" , 'yikes-inc-easy-mailchimp-extender' ) , __( "Settings Page/General Settings" , 'yikes-inc-easy-mailchimp-extender' ) );
@@ -2009,7 +2010,8 @@  discard block
 block discarded – undo
2009 2010
 
2010 2011
 
2011 2012
 
2012
-					} else { // THIS IS AN INTEREST GROUP!
2013
+					} else {
2014
+// THIS IS AN INTEREST GROUP!
2013 2015
 
2014 2016
 						?>
2015 2017
 						<section class="draggable" id="<?php echo $field['group_id']; ?>">
Please login to merge, or discard this patch.