Completed
Pull Request — master (#1487)
by Stephanie
01:04
created
classes/models/fields/FrmFieldType.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -149,8 +149,8 @@  discard block
 block discarded – undo
149 149
 		$field_val = '';
150 150
 		if ( is_object( $this->field ) ) {
151 151
 			$field_val = $this->field->{$column};
152
-		} elseif ( is_array( $this->field ) && isset( $this->field[ $column ] ) ) {
153
-			$field_val = $this->field[ $column ];
152
+		} elseif ( is_array( $this->field ) && isset( $this->field[$column] ) ) {
153
+			$field_val = $this->field[$column];
154 154
 		}
155 155
 
156 156
 		return $field_val;
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 		if ( is_object( $this->field ) ) {
165 165
 			$this->field->{$column} = $value;
166 166
 		} elseif ( is_array( $this->field ) ) {
167
-			$this->field[ $column ] = $value;
167
+			$this->field[$column] = $value;
168 168
 		}
169 169
 	}
170 170
 
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
 			printf(
557 557
 				/* translators: %s: Field type */
558 558
 				esc_html__( '%s Options', 'formidable' ),
559
-				esc_html( $all_field_types[ $args['display']['type'] ]['name'] )
559
+				esc_html( $all_field_types[$args['display']['type']]['name'] )
560 560
 			);
561 561
 			FrmAppHelper::icon_by_class( 'frmfont frm_arrowdown6_icon', array( 'aria-hidden' => 'true' ) );
562 562
 			?>
@@ -664,8 +664,8 @@  discard block
 block discarded – undo
664 664
 
665 665
 		$fields = array_merge( $fields, $pro_fields );
666 666
 
667
-		if ( isset( $fields[ $this->type ] ) ) {
668
-			$name = is_array( $fields[ $this->type ] ) ? $fields[ $this->type ]['name'] : $fields[ $this->type ];
667
+		if ( isset( $fields[$this->type] ) ) {
668
+			$name = is_array( $fields[$this->type] ) ? $fields[$this->type]['name'] : $fields[$this->type];
669 669
 		}
670 670
 
671 671
 		return $name;
@@ -682,7 +682,7 @@  discard block
 block discarded – undo
682 682
 	 * @return array
683 683
 	 */
684 684
 	public function get_default_field_options() {
685
-		$opts        = array(
685
+		$opts = array(
686 686
 			'size'               => '',
687 687
 			'max'                => '',
688 688
 			'label'              => '',
@@ -1078,7 +1078,7 @@  discard block
 block discarded – undo
1078 1078
 			}
1079 1079
 		} else {
1080 1080
 			$args['save_array'] = $this->is_readonly_array();
1081
-			$hidden             .= $this->show_single_hidden( $selected_value, $args );
1081
+			$hidden .= $this->show_single_hidden( $selected_value, $args );
1082 1082
 		}
1083 1083
 
1084 1084
 		return $hidden;
@@ -1087,7 +1087,7 @@  discard block
 block discarded – undo
1087 1087
 	protected function show_single_hidden( $selected, $args ) {
1088 1088
 		if ( $args['save_array'] ) {
1089 1089
 			$args['field_name'] .= '[]';
1090
-			$id                 = '';
1090
+			$id = '';
1091 1091
 		} else {
1092 1092
 			$id = ' id="' . esc_attr( $args['html_id'] ) . '"';
1093 1093
 		}
@@ -1103,8 +1103,8 @@  discard block
 block discarded – undo
1103 1103
 		$selected = $values['field_value'];
1104 1104
 
1105 1105
 		if ( isset( $values['combo_name'] ) ) {
1106
-			$options  = $options[ $values['combo_name'] ];
1107
-			$selected = ( is_array( $selected ) && isset( $selected[ $values['combo_name'] ] ) ) ? $selected[ $values['combo_name'] ] : '';
1106
+			$options  = $options[$values['combo_name']];
1107
+			$selected = ( is_array( $selected ) && isset( $selected[$values['combo_name']] ) ) ? $selected[$values['combo_name']] : '';
1108 1108
 		}
1109 1109
 
1110 1110
 		$input = $this->select_tag( $values );
@@ -1155,7 +1155,7 @@  discard block
 block discarded – undo
1155 1155
 	}
1156 1156
 
1157 1157
 	protected function fill_display_field_values( $args = array() ) {
1158
-		$defaults        = array(
1158
+		$defaults = array(
1159 1159
 			'field_name'    => 'item_meta[' . $this->get_field_column( 'id' ) . ']',
1160 1160
 			'field_id'      => $this->get_field_column( 'id' ),
1161 1161
 			'field_plus_id' => '',
@@ -1208,7 +1208,7 @@  discard block
 block discarded – undo
1208 1208
 			}
1209 1209
 		}
1210 1210
 
1211
-		if ( isset( $args['errors'][ 'field' . $args['field_id'] ] ) && ! $custom_error_fields ) {
1211
+		if ( isset( $args['errors']['field' . $args['field_id']] ) && ! $custom_error_fields ) {
1212 1212
 			if ( $error_comes_first ) {
1213 1213
 				array_unshift( $describedby, 'frm_error_' . $args['html_id'] );
1214 1214
 			} else {
@@ -1287,11 +1287,11 @@  discard block
 block discarded – undo
1287 1287
 
1288 1288
 		$field_id = $this->get_field_column( 'id' );
1289 1289
 		if ( ! array_key_exists( $field_id, $frm_validated_unique_values ) ) {
1290
-			$frm_validated_unique_values[ $field_id ] = array();
1290
+			$frm_validated_unique_values[$field_id] = array();
1291 1291
 			return false;
1292 1292
 		}
1293 1293
 
1294
-		$already_validated_this_value = in_array( $value, $frm_validated_unique_values[ $field_id ], true );
1294
+		$already_validated_this_value = in_array( $value, $frm_validated_unique_values[$field_id], true );
1295 1295
 		return $already_validated_this_value;
1296 1296
 	}
1297 1297
 
@@ -1316,7 +1316,7 @@  discard block
 block discarded – undo
1316 1316
 	private function value_validated_as_unique( $value ) {
1317 1317
 		global $frm_validated_unique_values;
1318 1318
 		$field_id                                   = $this->get_field_column( 'id' );
1319
-		$frm_validated_unique_values[ $field_id ][] = $value;
1319
+		$frm_validated_unique_values[$field_id][] = $value;
1320 1320
 	}
1321 1321
 
1322 1322
 	public function get_value_to_save( $value, $atts ) {
@@ -1353,8 +1353,8 @@  discard block
 block discarded – undo
1353 1353
 		$value = $this->prepare_display_value( $value, $atts );
1354 1354
 
1355 1355
 		if ( is_array( $value ) ) {
1356
-			if ( isset( $atts['show'] ) && $atts['show'] && isset( $value[ $atts['show'] ] ) ) {
1357
-				$value = $value[ $atts['show'] ];
1356
+			if ( isset( $atts['show'] ) && $atts['show'] && isset( $value[$atts['show']] ) ) {
1357
+				$value = $value[$atts['show']];
1358 1358
 			} elseif ( ! isset( $atts['return_array'] ) || ! $atts['return_array'] ) {
1359 1359
 				$sep   = isset( $atts['sep'] ) ? $atts['sep'] : ', ';
1360 1360
 				$value = implode( $sep, $value );
@@ -1484,8 +1484,8 @@  discard block
 block discarded – undo
1484 1484
 		$saved_entries = $atts['ids'];
1485 1485
 		$new_value     = array();
1486 1486
 		foreach ( (array) $value as $old_child_id ) {
1487
-			if ( isset( $saved_entries[ $old_child_id ] ) ) {
1488
-				$new_value[] = $saved_entries[ $old_child_id ];
1487
+			if ( isset( $saved_entries[$old_child_id] ) ) {
1488
+				$new_value[] = $saved_entries[$old_child_id];
1489 1489
 			}
1490 1490
 		}
1491 1491
 
Please login to merge, or discard this patch.
classes/models/FrmYoutubeFeedApi.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@
 block discarded – undo
40 40
 	 */
41 41
 	public function get_video( $type = 'welcome' ) {
42 42
 		$videos = $this->get_api_info();
43
-		if ( isset( $videos[ $type ] ) ) {
44
-			return $videos[ $type ];
43
+		if ( isset( $videos[$type] ) ) {
44
+			return $videos[$type];
45 45
 		}
46 46
 		return array();
47 47
 	}
Please login to merge, or discard this patch.
classes/views/xml/posts_xml.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,8 +113,8 @@
 block discarded – undo
113 113
 	$label = ( 'category' === $term->taxonomy || 'tag' === $term->taxonomy ) ? $term->taxonomy : 'term';
114 114
 	?>
115 115
 	<term><term_id><?php echo esc_html( $term->term_id ); ?></term_id><term_taxonomy><?php echo esc_html( $term->taxonomy ); ?></term_taxonomy><?php
116
-	if ( ! empty( $parent_slugs[ $term->parent ] ) ) {
117
-		echo '<term_parent>' . esc_html( $parent_slugs[ $term->parent ] ) . '</term_parent>';
116
+	if ( ! empty( $parent_slugs[$term->parent] ) ) {
117
+		echo '<term_parent>' . esc_html( $parent_slugs[$term->parent] ) . '</term_parent>';
118 118
 	}
119 119
 	if ( ! empty( $term->name ) ) {
120 120
 		echo '<term_name>' . FrmXMLHelper::cdata( $term->name ) . '</term_name>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
Please login to merge, or discard this patch.
classes/models/FrmField.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -305,8 +305,8 @@  discard block
 block discarded – undo
305 305
 			require_once ABSPATH . 'wp-admin/includes/plugin.php';
306 306
 		}
307 307
 		$plugins = get_plugins();
308
-		if ( isset( $plugins[ $plugin ] ) && ! empty( $plugins[ $plugin ]['Version'] ) ) {
309
-			return $plugins[ $plugin ]['Version'];
308
+		if ( isset( $plugins[$plugin] ) && ! empty( $plugins[$plugin]['Version'] ) ) {
309
+			return $plugins[$plugin]['Version'];
310 310
 		}
311 311
 		return false;
312 312
 	}
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
 		$values = FrmAppHelper::maybe_filter_array( $values, array( 'name', 'description' ) );
378 378
 
379 379
 		foreach ( array( 'name', 'description', 'type', 'default_value' ) as $col ) {
380
-			$new_values[ $col ] = $values[ $col ];
380
+			$new_values[$col] = $values[$col];
381 381
 		}
382 382
 
383 383
 		$new_values['options']       = self::maybe_filter_options( $values['options'] );
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
 		$new_values['created_at']    = current_time( 'mysql', 1 );
389 389
 
390 390
 		if ( isset( $values['id'] ) ) {
391
-			$frm_duplicate_ids[ $values['field_key'] ] = $new_values['field_key'];
391
+			$frm_duplicate_ids[$values['field_key']] = $new_values['field_key'];
392 392
 			$new_values                                = apply_filters( 'frm_duplicated_field', $new_values );
393 393
 		}
394 394
 
@@ -397,9 +397,9 @@  discard block
 block discarded – undo
397 397
 		foreach ( $new_values as $k => $v ) {
398 398
 			if ( is_array( $v ) ) {
399 399
 				if ( $k === 'default_value' ) {
400
-					$new_values[ $k ] = FrmAppHelper::maybe_json_encode( $v );
400
+					$new_values[$k] = FrmAppHelper::maybe_json_encode( $v );
401 401
 				} else {
402
-					$new_values[ $k ] = serialize( $v );
402
+					$new_values[$k] = serialize( $v );
403 403
 				}
404 404
 			}
405 405
 			unset( $k, $v );
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
 		}
420 420
 
421 421
 		if ( isset( $values['id'] ) ) {
422
-			$frm_duplicate_ids[ $values['id'] ] = $new_id;
422
+			$frm_duplicate_ids[$values['id']] = $new_id;
423 423
 		}
424 424
 
425 425
 		return $new_id;
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
 	public static function duplicate( $old_form_id, $form_id, $copy_keys = false, $blog_id = false ) {
480 480
 		global $frm_duplicate_ids;
481 481
 
482
-		$where  = array(
482
+		$where = array(
483 483
 			array(
484 484
 				'or'                => 1,
485 485
 				'fi.form_id'        => $old_form_id,
@@ -525,8 +525,8 @@  discard block
 block discarded – undo
525 525
 
526 526
 			$values                                 = apply_filters( 'frm_duplicated_field', $values );
527 527
 			$new_id                                 = self::create( $values );
528
-			$frm_duplicate_ids[ $field->id ]        = $new_id;
529
-			$frm_duplicate_ids[ $field->field_key ] = $new_id;
528
+			$frm_duplicate_ids[$field->id]        = $new_id;
529
+			$frm_duplicate_ids[$field->field_key] = $new_id;
530 530
 			unset( $field );
531 531
 		}//end foreach
532 532
 	}
@@ -564,11 +564,11 @@  discard block
 block discarded – undo
564 564
 
565 565
 		// serialize array values
566 566
 		foreach ( array( 'field_options', 'options' ) as $opt ) {
567
-			if ( isset( $values[ $opt ] ) && is_array( $values[ $opt ] ) ) {
567
+			if ( isset( $values[$opt] ) && is_array( $values[$opt] ) ) {
568 568
 				if ( 'field_options' === $opt ) {
569
-					$values[ $opt ] = self::maybe_filter_options( $values[ $opt ] );
569
+					$values[$opt] = self::maybe_filter_options( $values[$opt] );
570 570
 				}
571
-				$values[ $opt ] = serialize( $values[ $opt ] );
571
+				$values[$opt] = serialize( $values[$opt] );
572 572
 			}
573 573
 		}
574 574
 		if ( isset( $values['default_value'] ) && is_array( $values['default_value'] ) ) {
@@ -720,7 +720,7 @@  discard block
 block discarded – undo
720 720
 				'id'        => $id,
721 721
 				'field_key' => $id,
722 722
 			);
723
-			$type  = FrmDb::get_var( 'frm_fields', $where, $col );
723
+			$type = FrmDb::get_var( 'frm_fields', $where, $col );
724 724
 		}
725 725
 
726 726
 		return $type;
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
 					continue;
747 747
 				}
748 748
 
749
-				$fields[ $result->id ] = $result;
749
+				$fields[$result->id] = $result;
750 750
 				$count ++;
751 751
 				if ( $limit == 1 ) {
752 752
 					$fields = $result;
@@ -792,7 +792,7 @@  discard block
 block discarded – undo
792 792
 			$count  = 0;
793 793
 			foreach ( $results as $result ) {
794 794
 				$count ++;
795
-				$fields[ $result->id ] = $result;
795
+				$fields[$result->id] = $result;
796 796
 				if ( ! empty( $limit ) && $count >= $limit ) {
797 797
 					break;
798 798
 				}
@@ -861,7 +861,7 @@  discard block
 block discarded – undo
861 861
 			}
862 862
 
863 863
 			if ( ! empty( $sub_fields ) ) {
864
-				$index        = $k + $index_offset;
864
+				$index = $k + $index_offset;
865 865
 				$index_offset += count( $sub_fields );
866 866
 				array_splice( $results, $index, 0, $sub_fields );
867 867
 			}
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
 		$query_type = ( $limit == ' LIMIT 1' || $limit == 1 ) ? 'row' : 'results';
907 907
 
908 908
 		if ( is_array( $where ) ) {
909
-			$args    = array(
909
+			$args = array(
910 910
 				'order_by' => $order_by,
911 911
 				'limit'    => $limit,
912 912
 			);
@@ -937,9 +937,9 @@  discard block
 block discarded – undo
937 937
 				FrmDb::set_cache( $result->field_key, $result, 'frm_field' );
938 938
 
939 939
 				self::prepare_options( $result );
940
-				$results[ $r_key ]->field_options = $result->field_options;
941
-				$results[ $r_key ]->options       = $result->options;
942
-				$results[ $r_key ]->default_value = $result->default_value;
940
+				$results[$r_key]->field_options = $result->field_options;
941
+				$results[$r_key]->options       = $result->options;
942
+				$results[$r_key]->default_value = $result->default_value;
943 943
 
944 944
 				unset( $r_key, $result );
945 945
 			}
@@ -1142,23 +1142,23 @@  discard block
 block discarded – undo
1142 1142
 	}
1143 1143
 
1144 1144
 	public static function is_option_true_in_array( $field, $option ) {
1145
-		return isset( $field[ $option ] ) && $field[ $option ];
1145
+		return isset( $field[$option] ) && $field[$option];
1146 1146
 	}
1147 1147
 
1148 1148
 	public static function is_option_true_in_object( $field, $option ) {
1149
-		return isset( $field->field_options[ $option ] ) && $field->field_options[ $option ];
1149
+		return isset( $field->field_options[$option] ) && $field->field_options[$option];
1150 1150
 	}
1151 1151
 
1152 1152
 	public static function is_option_empty_in_array( $field, $option ) {
1153
-		return ! isset( $field[ $option ] ) || empty( $field[ $option ] );
1153
+		return ! isset( $field[$option] ) || empty( $field[$option] );
1154 1154
 	}
1155 1155
 
1156 1156
 	public static function is_option_empty_in_object( $field, $option ) {
1157
-		return ! isset( $field->field_options[ $option ] ) || empty( $field->field_options[ $option ] );
1157
+		return ! isset( $field->field_options[$option] ) || empty( $field->field_options[$option] );
1158 1158
 	}
1159 1159
 
1160 1160
 	public static function is_option_value_in_object( $field, $option ) {
1161
-		return isset( $field->field_options[ $option ] ) && $field->field_options[ $option ] != '';
1161
+		return isset( $field->field_options[$option] ) && $field->field_options[$option] != '';
1162 1162
 	}
1163 1163
 
1164 1164
 	/**
@@ -1176,10 +1176,10 @@  discard block
 block discarded – undo
1176 1176
 
1177 1177
 	public static function get_option_in_array( $field, $option ) {
1178 1178
 
1179
-		if ( isset( $field[ $option ] ) ) {
1180
-			$this_option = $field[ $option ];
1181
-		} elseif ( isset( $field['field_options'] ) && is_array( $field['field_options'] ) && isset( $field['field_options'][ $option ] ) ) {
1182
-			$this_option = $field['field_options'][ $option ];
1179
+		if ( isset( $field[$option] ) ) {
1180
+			$this_option = $field[$option];
1181
+		} elseif ( isset( $field['field_options'] ) && is_array( $field['field_options'] ) && isset( $field['field_options'][$option] ) ) {
1182
+			$this_option = $field['field_options'][$option];
1183 1183
 		} else {
1184 1184
 			$this_option = '';
1185 1185
 		}
@@ -1188,7 +1188,7 @@  discard block
 block discarded – undo
1188 1188
 	}
1189 1189
 
1190 1190
 	public static function get_option_in_object( $field, $option ) {
1191
-		return isset( $field->field_options[ $option ] ) ? $field->field_options[ $option ] : '';
1191
+		return isset( $field->field_options[$option] ) ? $field->field_options[$option] : '';
1192 1192
 	}
1193 1193
 
1194 1194
 	/**
Please login to merge, or discard this patch.
classes/factories/FrmCaptchaFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@
 block discarded – undo
33 33
 			'turnstile' => 'FrmTurnstileSettings',
34 34
 		);
35 35
 
36
-		if ( ! isset( $settings_classes[ $active_captcha ] ) ) {
36
+		if ( ! isset( $settings_classes[$active_captcha] ) ) {
37 37
 			$active_captcha = 'recaptcha';
38 38
 		}
39 39
 
40
-		return $settings_classes[ $active_captcha ];
40
+		return $settings_classes[$active_captcha];
41 41
 	}
42 42
 }
Please login to merge, or discard this patch.
classes/models/fields/FrmFieldCaptcha.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -255,8 +255,8 @@  discard block
 block discarded – undo
255 255
 
256 256
 		if ( is_wp_error( $resp ) ) {
257 257
 			$error_string                     = $resp->get_error_message();
258
-			$errors[ 'field' . $args['id'] ]  = __( 'There was a problem verifying your captcha', 'formidable' );
259
-			$errors[ 'field' . $args['id'] ] .= ' ' . $error_string;
258
+			$errors['field' . $args['id']]  = __( 'There was a problem verifying your captcha', 'formidable' );
259
+			$errors['field' . $args['id']] .= ' ' . $error_string;
260 260
 			return $errors;
261 261
 		}
262 262
 
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 			if ( $invalid_message === __( 'The reCAPTCHA was not entered correctly', 'formidable' ) ) {
284 284
 				$invalid_message = '';
285 285
 			}
286
-			$errors[ 'field' . $args['id'] ] = ( $invalid_message === '' ? $frm_settings->re_msg : $invalid_message );
286
+			$errors['field' . $args['id']] = ( $invalid_message === '' ? $frm_settings->re_msg : $invalid_message );
287 287
 		}
288 288
 
289 289
 		return $errors;
@@ -299,8 +299,8 @@  discard block
 block discarded – undo
299 299
 			$frm_vars['captcha_scores'] = array();
300 300
 		}
301 301
 		$form_id = is_object( $this->field ) ? $this->field->form_id : $this->field['form_id'];
302
-		if ( ! isset( $frm_vars['captcha_scores'][ $form_id ] ) ) {
303
-			$frm_vars['captcha_scores'][ $form_id ] = $score;
302
+		if ( ! isset( $frm_vars['captcha_scores'][$form_id] ) ) {
303
+			$frm_vars['captcha_scores'][$form_id] = $score;
304 304
 		}
305 305
 	}
306 306
 
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
 	protected static function post_data_includes_token() {
330 330
 		$settings = FrmCaptchaFactory::get_settings_object();
331 331
 		// phpcs:ignore WordPress.Security.NonceVerification.Missing
332
-		return ! empty( $_POST[ $settings->token_field ] );
332
+		return ! empty( $_POST[$settings->token_field] );
333 333
 	}
334 334
 
335 335
 	/**
Please login to merge, or discard this patch.
stubs.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -216,16 +216,16 @@
 block discarded – undo
216 216
 namespace WPMailSMTP {
217 217
 	class Options {
218 218
 	   /**
219
-		* @return Options
220
-		*/
219
+	    * @return Options
220
+	    */
221 221
 	   public static function init() {
222 222
 	   }
223 223
 	   /**
224
-		 * @param string $group
225
-		 * @param string $key
226
-		 * @param bool   $strip_slashes
227
-		 * @return mixed|null
228
-		 */
224
+	    * @param string $group
225
+	    * @param string $key
226
+	    * @param bool   $strip_slashes
227
+	    * @return mixed|null
228
+	    */
229 229
 		public function get( $group, $key, $strip_slashes = true ) {
230 230
 		}
231 231
 	}
Please login to merge, or discard this patch.
classes/controllers/FrmDashboardController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
 		foreach ( $data as $key => $messages ) {
479 479
 			if ( in_array( $key, array( 'unread', 'dismissed' ), true ) ) {
480 480
 				foreach ( $messages as $key_msg => $message ) {
481
-					$data[ $key ][ $key_msg ]['cta'] = self::inbox_clean_messages_cta( $message['cta'] );
481
+					$data[$key][$key_msg]['cta'] = self::inbox_clean_messages_cta( $message['cta'] );
482 482
 				}
483 483
 			}
484 484
 		}
@@ -557,11 +557,11 @@  discard block
 block discarded – undo
557 557
 	 */
558 558
 	private static function get_dashboard_options( $option_name = null ) {
559 559
 		$options = get_option( self::OPTION_META_NAME, array() );
560
-		if ( null !== $option_name && ! isset( $options[ $option_name ] ) ) {
560
+		if ( null !== $option_name && ! isset( $options[$option_name] ) ) {
561 561
 			return array();
562 562
 		}
563 563
 		if ( null !== $option_name ) {
564
-			return $options[ $option_name ];
564
+			return $options[$option_name];
565 565
 		}
566 566
 		return $options;
567 567
 	}
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
 	 */
577 577
 	private static function update_dashboard_options( $data, $option_name ) {
578 578
 		$options                 = self::get_dashboard_options();
579
-		$options[ $option_name ] = $data;
579
+		$options[$option_name] = $data;
580 580
 		update_option( self::OPTION_META_NAME, $options, 'no' );
581 581
 	}
582 582
 
Please login to merge, or discard this patch.