Completed
Pull Request — master (#2400)
by
unknown
39s
created
classes/controllers/FrmSettingsController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 				$section['function'] = $original;
174 174
 			}
175 175
 
176
-			$sections[ $key ] = $section;
176
+			$sections[$key] = $section;
177 177
 		}//end foreach
178 178
 
179 179
 		return $sections;
@@ -184,13 +184,13 @@  discard block
 block discarded – undo
184 184
 
185 185
 		foreach ( $sections as $key => $section ) {
186 186
 			if ( in_array( $key, $payment_section_keys, true ) ) {
187
-				self::$removed_payments_sections[ $key ] = $section;
188
-				unset( $sections[ $key ] );
187
+				self::$removed_payments_sections[$key] = $section;
188
+				unset( $sections[$key] );
189 189
 			}
190 190
 		}
191 191
 
192 192
 		$order = array( 'stripe', 'square', 'paypal', 'authorize_net' );
193
-		uksort( self::$removed_payments_sections, function ( $a, $b ) use ( $order ) {
193
+		uksort( self::$removed_payments_sections, function( $a, $b ) use ( $order ) {
194 194
 			return array_search( $a, $order ) - array_search( $b, $order );
195 195
 		} );
196 196
 	}
@@ -201,11 +201,11 @@  discard block
 block discarded – undo
201 201
 
202 202
 		$section  = FrmAppHelper::get_post_param( 'tab', '', 'sanitize_text_field' );
203 203
 		$sections = self::get_settings_tabs();
204
-		if ( ! isset( $sections[ $section ] ) ) {
204
+		if ( ! isset( $sections[$section] ) ) {
205 205
 			wp_die();
206 206
 		}
207 207
 
208
-		$section = $sections[ $section ];
208
+		$section = $sections[$section];
209 209
 
210 210
 		if ( isset( $section['class'] ) ) {
211 211
 			call_user_func( array( $section['class'], $section['function'] ) );
Please login to merge, or discard this patch.