Completed
Push — staging ( 7f569b...cd52d3 )
by
unknown
04:28
created
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.
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.
includes/import-export/yikes-easy-mailchimp-import.class.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,8 @@
 block discarded – undo
54 54
 				foreach( $new_settings as $option_name => $option_value ) {
55 55
 					update_option( $option_name, $option_value );
56 56
 				}
57
-			} else { // if it's not, then it's an opt-in forms import
57
+			} else {
58
+// if it's not, then it's an opt-in forms import
58 59
 				// If this is the first row, then it should be title data.
59 60
 				if ( 1 === $row ) {
60 61
 					$titles = $line;
Please login to merge, or discard this patch.
includes/class-yikes-inc-easy-mailchimp-extender-option-forms.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 	 *
20 20
 	 * @param int $form_id The ID of the form to retrieve.
21 21
 	 *
22
-	 * @return array The array of form data.
22
+	 * @return string The array of form data.
23 23
 	 */
24 24
 	public function get_form( $form_id ) {
25 25
 		$all_forms = $this->get_all_forms();
Please login to merge, or discard this patch.
includes/class-yikes-inc-easy-mailchimp-extender-activator.php 1 patch
Braces   +10 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * @subpackage Yikes_Inc_Easy_Mailchimp_Extender/includes
19 19
  * @author     YIKES Inc. <[email protected]>
20 20
  */
21
-class Yikes_Inc_Easy_Mailchimp_Extender_Activator {
21
+class Yikes_Inc_Easy_Mailchimp_Extender_Activator {
22 22
 	/**
23 23
 	 * Short Description. Activation hook.
24 24
 	 *
@@ -26,16 +26,16 @@  discard block
 block discarded – undo
26 26
 	 *
27 27
 	 * @since    6.0.0
28 28
 	 */
29
-	public static function activate( $network_wide ) {
29
+	public static function activate( $network_wide ) {
30 30
 		global $wpdb;
31 31
 
32
-		if ( function_exists( 'is_multisite' ) && is_multisite() ) {
32
+		if ( function_exists( 'is_multisite' ) && is_multisite() ) {
33 33
 			// check if it is a network activation - if so, run the activation function for each blog id
34
-			if ( $network_wide ) {
34
+			if ( $network_wide ) {
35 35
 				$old_blog = $wpdb->blogid;
36 36
 				// Get all blog ids
37 37
 				$blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
38
-				foreach ( $blogids as $blog_id ) {
38
+				foreach ( $blogids as $blog_id ) {
39 39
 					switch_to_blog( $blog_id );
40 40
 					self::_activate_yikes_easy_mailchimp( $wpdb );
41 41
 					restore_current_blog();
@@ -44,7 +44,8 @@  discard block
 block discarded – undo
44 44
 				return;
45 45
 			}
46 46
 			self::_activate_yikes_easy_mailchimp( $wpdb );
47
-		} else { /* end network activate */
47
+		} else {
48
+/* end network activate */
48 49
 			self::_activate_yikes_easy_mailchimp( $wpdb );
49 50
 		}
50 51
 	}
@@ -56,7 +57,7 @@  discard block
 block discarded – undo
56 57
 	 *
57 58
 	 * @since    6.0.0
58 59
 	 */
59
-	static function _activate_yikes_easy_mailchimp( $wpdb ) {
60
+	static function _activate_yikes_easy_mailchimp( $wpdb ) {
60 61
 
61 62
 		// single site
62 63
 		$custom_table_name = $wpdb->prefix . 'yikes_easy_mc_forms';
@@ -95,12 +96,12 @@  discard block
 block discarded – undo
95 96
 
96 97
 		// create an option for the date that the user initially activated the plugin
97 98
 		// used to display a two week notice, asking for a review or to upgrade
98
-		if ( ! get_option( 'yikes_easy_mailchimp_activation_date' ) || get_option( 'yikes_easy_mailchimp_activation_date' ) == '' ) {
99
+		if ( ! get_option( 'yikes_easy_mailchimp_activation_date' ) || get_option( 'yikes_easy_mailchimp_activation_date' ) == '' ) {
99 100
 			update_option( 'yikes_easy_mailchimp_activation_date', strtotime( 'now' ) );
100 101
 		}
101 102
 
102 103
 		// Create an option for the forms.
103
-		if ( class_exists( 'Yikes_Inc_Easy_MailChimp_Extender_Option_Forms' ) ) {
104
+		if ( class_exists( 'Yikes_Inc_Easy_MailChimp_Extender_Option_Forms' ) ) {
104 105
 			$option_class = new Yikes_Inc_Easy_MailChimp_Extender_Option_Forms();
105 106
 			$option_class->create_option();
106 107
 		}
Please login to merge, or discard this patch.
includes/class-yikes-inc-easy-mailchimp-extender.php 1 patch
Braces   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
  * @subpackage Yikes_Inc_Easy_Mailchimp_Extender/includes
26 26
  * @author     YIKES Inc. <[email protected]>
27 27
  */
28
-class Yikes_Inc_Easy_Mailchimp_Extender {
28
+class Yikes_Inc_Easy_Mailchimp_Extender {
29 29
 	/**
30 30
 	 * The loader that's responsible for maintaining and registering all hooks that power
31 31
 	 * the plugin.
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	 *
71 71
 	 * @param Yikes_Inc_Easy_MailChimp_Extender_Form_Interface $form_interface
72 72
 	 */
73
-	public function __construct( Yikes_Inc_Easy_MailChimp_Extender_Form_Interface $form_interface ) {
73
+	public function __construct( Yikes_Inc_Easy_MailChimp_Extender_Form_Interface $form_interface ) {
74 74
 		$this->version = YIKES_MC_VERSION;
75 75
 		$this->form_interface = $form_interface;
76 76
 		$this->load_dependencies();
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 	 * @since    1.0.0
94 94
 	 * @access   private
95 95
 	 */
96
-	private function load_dependencies() {
96
+	private function load_dependencies() {
97 97
 		/**
98 98
 		 * The class responsible for orchestrating the actions and filters of the
99 99
 		 * core plugin.
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 	 * @since    1.0.0
118 118
 	 * @access   private
119 119
 	 */
120
-	private function define_admin_hooks() {
120
+	private function define_admin_hooks() {
121 121
 		$plugin_admin = new Yikes_Inc_Easy_Mailchimp_Forms_Admin( $this->get_yikes_inc_easy_mailchimp_extender(), $this->get_version(), $this->form_interface );
122 122
 		$plugin_admin->hooks();
123 123
 		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 	 * @since    1.0.0
131 131
 	 * @access   private
132 132
 	 */
133
-	private function define_public_hooks() {
133
+	private function define_public_hooks() {
134 134
 		$plugin_public = new Yikes_Inc_Easy_Mailchimp_Extender_Public( $this->get_yikes_inc_easy_mailchimp_extender(), $this->get_version() );
135 135
 	}
136 136
 	/**
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 	 *
139 139
 	 * @since    1.0.0
140 140
 	 */
141
-	public function run() {
141
+	public function run() {
142 142
 		$this->loader->run();
143 143
 	}
144 144
 	/**
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 	 * @since     1.0.0
149 149
 	 * @return    string    The name of the plugin.
150 150
 	 */
151
-	public function get_yikes_inc_easy_mailchimp_extender() {
151
+	public function get_yikes_inc_easy_mailchimp_extender() {
152 152
 		return $this->yikes_inc_easy_mailchimp_extender;
153 153
 	}
154 154
 	/**
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 * @since     1.0.0
158 158
 	 * @return    Yikes_Inc_Easy_Mailchimp_Extender_Loader    Orchestrates the hooks of the plugin.
159 159
 	 */
160
-	public function get_loader() {
160
+	public function get_loader() {
161 161
 		return $this->loader;
162 162
 	}
163 163
 	/**
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 	 * @since     1.0.0
167 167
 	 * @return    string    The version number of the plugin.
168 168
 	 */
169
-	public function get_version() {
169
+	public function get_version() {
170 170
 		return $this->version;
171 171
 	}
172 172
 }
Please login to merge, or discard this patch.