@@ -173,7 +173,7 @@ discard block |
||
| 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; |
@@ -193,8 +193,8 @@ discard block |
||
| 193 | 193 | |
| 194 | 194 | foreach ( $sections as $key => $section ) { |
| 195 | 195 | if ( in_array( $key, $payment_section_keys, true ) ) { |
| 196 | - self::$removed_payments_sections[ $key ] = $section; |
|
| 197 | - unset( $sections[ $key ] ); |
|
| 196 | + self::$removed_payments_sections[$key] = $section; |
|
| 197 | + unset( $sections[$key] ); |
|
| 198 | 198 | } |
| 199 | 199 | } |
| 200 | 200 | |
@@ -226,11 +226,11 @@ discard block |
||
| 226 | 226 | |
| 227 | 227 | $section = FrmAppHelper::get_post_param( 'tab', '', 'sanitize_text_field' ); |
| 228 | 228 | $sections = self::get_settings_tabs(); |
| 229 | - if ( ! isset( $sections[ $section ] ) ) { |
|
| 229 | + if ( ! isset( $sections[$section] ) ) { |
|
| 230 | 230 | wp_die(); |
| 231 | 231 | } |
| 232 | 232 | |
| 233 | - $section = $sections[ $section ]; |
|
| 233 | + $section = $sections[$section]; |
|
| 234 | 234 | |
| 235 | 235 | if ( isset( $section['class'] ) ) { |
| 236 | 236 | call_user_func( array( $section['class'], $section['function'] ) ); |
@@ -31,8 +31,8 @@ |
||
| 31 | 31 | if ( $is_active ) { |
| 32 | 32 | $input_params['checked'] = 'checked'; |
| 33 | 33 | } |
| 34 | - $other_section_selectors = array_map( |
|
| 35 | - function ( $section ) { |
|
| 34 | + $other_section_selectors = array_map( |
|
| 35 | + function( $section ) { |
|
| 36 | 36 | return "#frm_{$section}_settings_section"; |
| 37 | 37 | }, |
| 38 | 38 | array_diff( array_keys( $payment_sections ), array( $key ) ) |