@@ -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; |
@@ -184,13 +184,13 @@ discard block |
||
| 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 | $first_key = array_search( $a, $order ); |
| 195 | 195 | $second_key = array_search( $b, $order ); |
| 196 | 196 | if ( false === $first_key || false === $second_key ) { |
@@ -206,11 +206,11 @@ discard block |
||
| 206 | 206 | |
| 207 | 207 | $section = FrmAppHelper::get_post_param( 'tab', '', 'sanitize_text_field' ); |
| 208 | 208 | $sections = self::get_settings_tabs(); |
| 209 | - if ( ! isset( $sections[ $section ] ) ) { |
|
| 209 | + if ( ! isset( $sections[$section] ) ) { |
|
| 210 | 210 | wp_die(); |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | - $section = $sections[ $section ]; |
|
| 213 | + $section = $sections[$section]; |
|
| 214 | 214 | |
| 215 | 215 | if ( isset( $section['class'] ) ) { |
| 216 | 216 | call_user_func( array( $section['class'], $section['function'] ) ); |