Completed
Pull Request — master (#2390)
by
unknown
45s
created
classes/models/FrmTableHTMLGenerator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	 * @return void
87 87
 	 */
88 88
 	private function init_style_settings( $atts ) {
89
-		$style_settings       = array(
89
+		$style_settings = array(
90 90
 			'border_color' => 'dddddd',
91 91
 			'bg_color'     => 'f7f7f7',
92 92
 			'text_color'   => '444444',
@@ -97,12 +97,12 @@  discard block
 block discarded – undo
97 97
 		$this->style_settings = apply_filters( 'frm_show_entry_styles', $style_settings );
98 98
 
99 99
 		foreach ( $this->style_settings as $key => $setting ) {
100
-			if ( isset( $atts[ $key ] ) && $atts[ $key ] !== '' ) {
101
-				$this->style_settings[ $key ] = $atts[ $key ];
100
+			if ( isset( $atts[$key] ) && $atts[$key] !== '' ) {
101
+				$this->style_settings[$key] = $atts[$key];
102 102
 			}
103 103
 
104 104
 			if ( $this->is_color_setting( $key ) ) {
105
-				$this->style_settings[ $key ] = $this->get_color_markup( $this->style_settings[ $key ] );
105
+				$this->style_settings[$key] = $this->get_color_markup( $this->style_settings[$key] );
106 106
 			}
107 107
 		}
108 108
 
Please login to merge, or discard this patch.
classes/models/FrmFormState.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	 * @return void
60 60
 	 */
61 61
 	public function set( $key, $value ) {
62
-		$this->state[ $key ] = $value;
62
+		$this->state[$key] = $value;
63 63
 	}
64 64
 
65 65
 	/**
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
 	}
76 76
 
77 77
 	public function get( $key, $default ) {
78
-		if ( isset( $this->state[ $key ] ) ) {
79
-			return $this->state[ $key ];
78
+		if ( isset( $this->state[$key] ) ) {
79
+			return $this->state[$key];
80 80
 		}
81 81
 		return $default;
82 82
 	}
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 	private function compressed_state() {
172 172
 		$compressed = array();
173 173
 		foreach ( $this->state as $key => $value ) {
174
-			$compressed[ self::compressed_key( $key ) ] = $value;
174
+			$compressed[self::compressed_key( $key )] = $value;
175 175
 		}
176 176
 		return $compressed;
177 177
 	}
Please login to merge, or discard this patch.
classes/controllers/FrmSimpleBlocksController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 			return false;
77 77
 		}
78 78
 
79
-		return $addons[ $addon_id ];
79
+		return $addons[$addon_id];
80 80
 	}
81 81
 
82 82
 	/**
Please login to merge, or discard this patch.
stripe/controllers/FrmTransLiteListsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
 			'sort'   => '',
101 101
 			'sdir'   => '',
102 102
 		) as $var => $default ) {
103
-			$values[ $var ] = FrmAppHelper::get_param( $var, $default );
103
+			$values[$var] = FrmAppHelper::get_param( $var, $default );
104 104
 		}
105 105
 
106 106
 		return $values;
Please login to merge, or discard this patch.
stripe/models/FrmStrpLiteSettings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,8 +84,8 @@
 block discarded – undo
84 84
 		$settings = $this->default_options();
85 85
 
86 86
 		foreach ( $settings as $setting => $default ) {
87
-			if ( isset( $params[ 'frm_' . $this->param() . '_' . $setting ] ) ) {
88
-				$this->settings->{$setting} = trim( sanitize_text_field( $params[ 'frm_' . $this->param() . '_' . $setting ] ) );
87
+			if ( isset( $params['frm_' . $this->param() . '_' . $setting] ) ) {
88
+				$this->settings->{$setting} = trim( sanitize_text_field( $params['frm_' . $this->param() . '_' . $setting] ) );
89 89
 			}
90 90
 		}
91 91
 
Please login to merge, or discard this patch.
stripe/models/FrmStrpLitePaymentTypeHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
34 34
 	 * @return string[] An empty array is treated as automatic.
35 35
 	 */
36 36
 	public static function get_payment_method_types( $action ) {
37
-		if ( ! isset( self::$types_by_action_id[ $action->ID ] ) ) {
38
-			self::$types_by_action_id[ $action->ID ] = self::get_filtered_payment_method_types( $action );
37
+		if ( ! isset( self::$types_by_action_id[$action->ID] ) ) {
38
+			self::$types_by_action_id[$action->ID] = self::get_filtered_payment_method_types( $action );
39 39
 		}
40
-		return self::$types_by_action_id[ $action->ID ];
40
+		return self::$types_by_action_id[$action->ID];
41 41
 	}
42 42
 
43 43
 	/**
Please login to merge, or discard this patch.
stripe/models/FrmTransLiteDb.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -261,14 +261,14 @@
 block discarded – undo
261 261
 	private function fill_values( $values, &$new_values ) {
262 262
 		$defaults = $this->get_defaults();
263 263
 		foreach ( $defaults as $val => $default ) {
264
-			if ( isset( $values[ $val ] ) ) {
264
+			if ( isset( $values[$val] ) ) {
265 265
 				if ( $default['sanitize'] === 'float' ) {
266
-					$new_values[ $val ] = (float) $values[ $val ];
266
+					$new_values[$val] = (float) $values[$val];
267 267
 				} elseif ( ! empty( $default['sanitize'] ) ) {
268
-					$new_values[ $val ] = call_user_func( $default['sanitize'], $values[ $val ] );
268
+					$new_values[$val] = call_user_func( $default['sanitize'], $values[$val] );
269 269
 				}
270 270
 			} elseif ( $values['action'] === 'create' ) {
271
-				$new_values[ $val ] = $default['default'];
271
+				$new_values[$val] = $default['default'];
272 272
 			}
273 273
 		}
274 274
 	}
Please login to merge, or discard this patch.
stripe/controllers/FrmTransLiteSubscriptionsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 			'canceled' => __( 'Canceled', 'formidable' ),
70 70
 			'confirm'  => __( 'Are you sure you want to cancel that subscription?', 'formidable' ),
71 71
 		);
72
-		$atts     = array_merge( $defaults, $atts );
72
+		$atts = array_merge( $defaults, $atts );
73 73
 
74 74
 		if ( $sub->status === 'active' ) {
75 75
 			$link  = admin_url( 'admin-ajax.php?action=frm_trans_cancel&sub=' . $sub->id . '&nonce=' . wp_create_nonce( 'frm_trans_ajax' ) );
Please login to merge, or discard this patch.
stripe/helpers/FrmStrpLiteUrlParamHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@  discard block
 block discarded – undo
23 23
 	 * @return array|false
24 24
 	 */
25 25
 	public static function get_details_for_form( $form_id ) {
26
-		if ( ! isset( self::$details_by_form_id[ $form_id ] ) ) {
26
+		if ( ! isset( self::$details_by_form_id[$form_id] ) ) {
27 27
 			self::set_details_for_form( (int) $form_id );
28 28
 		}
29
-		return isset( self::$details_by_form_id[ $form_id ] ) ? self::$details_by_form_id[ $form_id ] : false;
29
+		return isset( self::$details_by_form_id[$form_id] ) ? self::$details_by_form_id[$form_id] : false;
30 30
 	}
31 31
 
32 32
 	/**
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 			return;
88 88
 		}
89 89
 
90
-		self::$details_by_form_id[ $form_id ] = array(
90
+		self::$details_by_form_id[$form_id] = array(
91 91
 			'entry'   => $entry,
92 92
 			'intent'  => $intent,
93 93
 			'payment' => $payment,
Please login to merge, or discard this patch.