Completed
Branch 4.0Builder (9ef7e0)
by Stephanie
03:43
created
classes/controllers/FrmFormsController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1082,7 +1082,8 @@
 block discarded – undo
1082 1082
 	private static function maybe_get_form_to_show( $id ) {
1083 1083
 		$form = false;
1084 1084
 
1085
-		if ( ! empty( $id ) ) { // no form id or key set
1085
+		if ( ! empty( $id ) ) {
1086
+// no form id or key set
1086 1087
 			$form = FrmForm::getOne( $id );
1087 1088
 			if ( ! $form || $form->parent_form_id || $form->status == 'trash' ) {
1088 1089
 				$form = false;
Please login to merge, or discard this patch.
classes/models/FrmAddon.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -306,7 +306,8 @@  discard block
 block discarded – undo
306 306
 
307 307
 		if ( isset( $version_info->new_version ) && ! empty( $version_info->new_version ) ) {
308 308
 			$this->clear_old_plugin_version( $version_info );
309
-			if ( $version_info === false ) { // was cleared with timeout
309
+			if ( $version_info === false ) {
310
+// was cleared with timeout
310 311
 				$transient = false;
311 312
 			} else {
312 313
 				$this->maybe_use_beta_url( $version_info );
@@ -393,7 +394,8 @@  discard block
 block discarded – undo
393 394
 	}
394 395
 
395 396
 	private function is_license_revoked() {
396
-		if ( empty( $this->license ) || empty( $this->plugin_slug ) || isset( $_POST['license'] ) ) { // WPCS: CSRF ok.
397
+		if ( empty( $this->license ) || empty( $this->plugin_slug ) || isset( $_POST['license'] ) ) {
398
+// WPCS: CSRF ok.
397 399
 			return;
398 400
 		}
399 401
 
Please login to merge, or discard this patch.
deprecated/FrmEDD_SL_Plugin_Updater.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -297,11 +297,13 @@
 block discarded – undo
297 297
 
298 298
 		global $frm_edd_plugin_data;
299 299
 
300
-		if ( empty( $_REQUEST['edd_sl_action'] ) || 'view_plugin_changelog' !== $_REQUEST['edd_sl_action'] ) { // WPCS: CSRF ok.
300
+		if ( empty( $_REQUEST['edd_sl_action'] ) || 'view_plugin_changelog' !== $_REQUEST['edd_sl_action'] ) {
301
+// WPCS: CSRF ok.
301 302
 			return;
302 303
 		}
303 304
 
304
-		if ( empty( $_REQUEST['plugin'] ) || empty( $_REQUEST['slug'] ) ) { // WPCS: CSRF ok.
305
+		if ( empty( $_REQUEST['plugin'] ) || empty( $_REQUEST['slug'] ) ) {
306
+// WPCS: CSRF ok.
305 307
 			return;
306 308
 		}
307 309
 
Please login to merge, or discard this patch.
classes/models/FrmSettings.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,8 @@  discard block
 block discarded – undo
56 56
 	}
57 57
 
58 58
 	private function translate_settings( $settings ) {
59
-		if ( $settings ) { //workaround for W3 total cache conflict
59
+		if ( $settings ) {
60
+//workaround for W3 total cache conflict
60 61
 			return unserialize( serialize( $settings ) );
61 62
 		}
62 63
 
@@ -68,7 +69,8 @@  discard block
 block discarded – undo
68 69
 		}
69 70
 
70 71
 		// If unserializing didn't work
71
-		if ( $settings ) { //workaround for W3 total cache conflict
72
+		if ( $settings ) {
73
+//workaround for W3 total cache conflict
72 74
 			$settings = unserialize( serialize( $settings ) );
73 75
 		} else {
74 76
 			$settings = $this;
Please login to merge, or discard this patch.
classes/models/FrmEntryValidate.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,8 @@
 block discarded – undo
90 90
 
91 91
 		if ( $posted_field->required == '1' && FrmAppHelper::is_empty_value( $value ) ) {
92 92
 			$errors[ 'field' . $args['id'] ] = FrmFieldsHelper::get_error_msg( $posted_field, 'blank' );
93
-		} elseif ( $posted_field->type == 'text' && ! isset( $_POST['item_name'] ) ) { // WPCS: CSRF ok.
93
+		} elseif ( $posted_field->type == 'text' && ! isset( $_POST['item_name'] ) ) {
94
+// WPCS: CSRF ok.
94 95
 			$_POST['item_name'] = $value;
95 96
 		}
96 97
 
Please login to merge, or discard this patch.