| @@ -50,14 +50,16 @@ | ||
| 50 | 50 | * @param stdClass $form |
| 51 | 51 | * @param array<WP_Post> $styles |
| 52 | 52 | * @param WP_Post $default_style |
| 53 | 53 | * @param string $row_view_file_path |
| 54 | + * | |
| 54 | 55 | * @return void |
| 55 | 56 | */ |
| 56 | 57 | function ( $form ) use ( $styles, $default_style, $row_view_file_path ) { |
| 57 | 58 | $active_style_id = isset( $form->options['custom_style'] ) ? (int) $form->options['custom_style'] : 1; |
| 59 | + | |
| 58 | 60 | if ( 1 === $active_style_id ) { |
| 59 | - // use the default style | |
| 61 | + // Use the default style | |
| 60 | 62 | $active_style_id = $default_style->ID; |
| 61 | 63 | } |
| 62 | 64 | |
| 63 | 65 | include $row_view_file_path; |