Completed
Push — staging ( 69b5b7...e62b8b )
by Evan
06:26
created
admin/class-yikes-inc-easy-mailchimp-extender-admin.php 2 patches
Doc Comments   -4 removed lines patch added patch discarded remove patch
@@ -1214,8 +1214,6 @@  discard block
 block discarded – undo
1214 1214
 	 * the correct WordPress options API (old plugin stored options wierdly)
1215 1215
 	 *
1216 1216
 	 * @since    1.0.0
1217
-	 * @param      string    $yikes_inc_easy_mailchimp_extender       The name of this plugin.
1218
-	 * @param      string    $version    The version of this plugin.
1219 1217
 	 */
1220 1218
 	public function check_for_old_yks_mc_options() {
1221 1219
 		$old_plugin_options = get_option( 'ykseme_storage' );
@@ -1250,8 +1248,6 @@  discard block
 block discarded – undo
1250 1248
 		 * the correct WordPress options API (old plugin stored options wierdly)
1251 1249
 		 *
1252 1250
 		 * @since    1.0.0
1253
-		 * @param      string    $yikes_inc_easy_mailchimp_extender       The name of this plugin.
1254
-		 * @param      string    $version    The version of this plugin.
1255 1251
 		 */
1256 1252
 		public function display_options_migrate_notice() {
1257 1253
 			
Please login to merge, or discard this 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.
includes/import-export/yikes-easy-mailchimp-export.class.php 2 patches
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -9,6 +9,11 @@  discard block
 block discarded – undo
9 9
 	*	@form_ids 		array of form ID's to export ie: array( 1,4,5,6 ) (user can select specific forms)
10 10
 	*	@file_name 	the name of the exported file
11 11
 	*/	
12
+
13
+	/**
14
+	 * @param string $table_name
15
+	 * @param string $file_name
16
+	 */
12 17
 	public static function yikes_mailchimp_form_export( $table_name, $form_ids , $file_name ) {
13 18
 		global $wpdb;
14 19
 		$wpdb->show_errors(); 															
@@ -64,6 +69,10 @@  discard block
 block discarded – undo
64 69
 	*	@parameters
65 70
 	*	@file_name 	the name of the exported file
66 71
 	*/	
72
+
73
+	/**
74
+	 * @param string $file_name
75
+	 */
67 76
 	public static function yikes_mailchimp_settings_export( $file_name ) {
68 77
 		
69 78
 		// get an array of all of our plugin settings (on the settings pages), to loop over
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@
 block discarded – undo
39 39
 			foreach ($results as $row) {
40 40
 			 
41 41
 			  // Add table headers
42
-			  if($first){
42
+			  if($first) {
43 43
 				 $titles = array();
44
-				 foreach($row as $key=>$val){
44
+				 foreach($row as $key=>$val) {
45 45
 					$titles[] = $key;
46 46
 				 }
47 47
 				 fputcsv($output_handle, $titles);
Please login to merge, or discard this patch.
public/classes/checkbox-integrations.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -23,6 +23,10 @@  discard block
 block discarded – undo
23 23
 		*	@since 6.0.0
24 24
 		*	@$integration_type - pass in the type of checkbox integration
25 25
 		*/
26
+
27
+		/**
28
+		 * @param string $integration_type
29
+		 */
26 30
 		public function is_user_already_subscribed( $integration_type ) {
27 31
 			// first check if the user is logged in
28 32
 			if( is_user_logged_in() ) {
@@ -69,6 +73,10 @@  discard block
 block discarded – undo
69 73
 		*	@$email - users email address entered into the form
70 74
 		*	@$integration_type - pass in the type of checkbox integration
71 75
 		*/
76
+
77
+		/**
78
+		 * @param string $integration_type
79
+		 */
72 80
 		public function is_new_registration_already_subscribed( $email , $integration_type ) {
73 81
 			// first check if the user is logged in
74 82
 			$checkbox_options = get_option( 'optin-checkbox-init' , '' );
@@ -233,6 +241,10 @@  discard block
 block discarded – undo
233 241
 		*	before continuing
234 242
 		*	@since 6.0.0
235 243
 		*/
244
+
245
+		/**
246
+		 * @param string $type
247
+		 */
236 248
 		public function was_checkbox_checked( $type ) {
237 249
 			// was sign-up checkbox checked - return the value
238 250
 			return ( isset( $_POST[ 'yikes_mailchimp_checkbox_'.$type ] ) && $_POST[ 'yikes_mailchimp_checkbox_'.$type ] == 1 );
Please login to merge, or discard this patch.
public/classes/checkbox-integrations/class.bbpress_forms-checkbox.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 		 * @param array $anonymous_data
42 42
 		 * @param int $user_id
43 43
 		 * @param string $trigger
44
-		 * @return boolean
44
+		 * @return boolean|null
45 45
 		 */
46 46
 		public function subscribe_from_bbpress( $anonymous_data, $user_id, $trigger ) {
47 47
 			$user_data = get_userdata( $user_id );
Please login to merge, or discard this patch.
public/classes/checkbox-integrations/class.buddypress_form-checkbox.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,6 @@
 block discarded – undo
40 40
 		 * @param string $user_login
41 41
 		 * @param string $user_password
42 42
 		 * @param string $user_email
43
-		 * @param array $usermeta
44 43
 		 */
45 44
 		public function subscribe_from_buddypress_form( $user_id, $user_login, $user_password, $user_email ) {
46 45
 			if ( $this->was_checkbox_checked( $this->type ) === false ) {
Please login to merge, or discard this patch.
class.easy_digital_downloads_checkout_form-checkbox.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,6 @@  discard block
 block discarded – undo
41 41
 		
42 42
 		
43 43
 		/**
44
-		 * @param array $meta
45 44
 		 *
46 45
 		 * @return array
47 46
 		 */
@@ -57,7 +56,7 @@  discard block
 block discarded – undo
57 56
 		/**
58 57
 		 * @param int $payment_id The ID of the payment
59 58
 		 *
60
-		 * @return bool|string
59
+		 * @return false|null
61 60
 		 */
62 61
 		public function subscribe_from_edd_purchase( $payment_id ) {
63 62
 			$meta = get_post_meta( $payment_id , '_yikes_easy_mc_optin' , true );
Please login to merge, or discard this patch.
public/classes/checkbox-integrations/class.registration_form-checkbox.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 	 *
36 36
 	 * @param int $user_id
37 37
 	 *
38
-	 * @return bool|string
38
+	 * @return false|null
39 39
 	*/
40 40
 	public function subscribe_from_registration( $user_id ) {
41 41
 		// was sign-up checkbox checked?
Please login to merge, or discard this patch.
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/front-end-widgets/front-end-widget-form.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,9 @@
 block discarded – undo
45 45
 		// before and after widget arguments are defined by themes
46 46
 		echo $args['before_widget'];
47 47
 		
48
-			if ( ! empty( $title ) )
49
-				echo $args['before_title'] . $title . $args['after_title'];
48
+			if ( ! empty( $title ) ) {
49
+							echo $args['before_title'] . $title . $args['after_title'];
50
+			}
50 51
 				
51 52
 			// Custom action hooks to place content in the widget before the form
52 53
 			// See FAQ for examples on usage
Please login to merge, or discard this patch.