| @@ -94,10 +94,9 @@ | ||
| 94 | 94 | if ( ! empty( $style->post_content['position'] ) ) { |
| 95 | 95 | $label_position = $style->post_content['position']; |
| 96 | 96 | } else { |
| 97 | 97 | $frm_style = new FrmStyle(); |
| 98 | - $defaults = $frm_style->get_defaults(); | |
| 99 | - $label_position = $defaults['position']; | |
| 98 | + $label_position = $frm_style->get_defaults()['position']; | |
| 100 | 99 | } |
| 101 | 100 | |
| 102 | 101 | $class_name = 'frm_style_' . $style->post_name; |
| 103 | 102 | $params = array( |
| @@ -355,8 +354,9 @@ | ||
| 355 | 354 | } |
| 356 | 355 | |
| 357 | 356 | $first_style = reset( $styles ); |
| 358 | 357 | $is_template_wrapper = is_array( $first_style ); |
| 358 | + // phpcs:disable Generic.WhiteSpace.ScopeIndent | |
| 359 | 359 | ?> |
| 360 | 360 | <div <?php FrmAppHelper::array_to_html_params( $card_wrapper_params, true ); ?>> |
| 361 | 361 | <?php |
| 362 | 362 | if ( $is_template_wrapper ) { |
| @@ -366,8 +366,9 @@ | ||
| 366 | 366 | } |
| 367 | 367 | ?> |
| 368 | 368 | </div> |
| 369 | 369 | <?php |
| 370 | + // phpcs:enable Generic.WhiteSpace.ScopeIndent | |
| 370 | 371 | } |
| 371 | 372 | |
| 372 | 373 | /** |
| 373 | 374 | * Overwrite some styles. We want to make sure the sizes are normalized for the cards. |
| @@ -463,8 +464,9 @@ | ||
| 463 | 464 | if ( $count <= self::PAGE_SIZE ) { |
| 464 | 465 | // Not enough cards to require pagination. |
| 465 | 466 | return; |
| 466 | 467 | } |
| 468 | + // phpcs:disable Generic.WhiteSpace.ScopeIndent | |
| 467 | 469 | ?> |
| 468 | 470 | <div class="frm-style-card-pagination frm_wrap"> |
| 469 | 471 | <a href="#" class="frm-show-all-styles"> |
| 470 | 472 | <?php |
| @@ -476,8 +478,9 @@ | ||
| 476 | 478 | ?> |
| 477 | 479 | </a> |
| 478 | 480 | </div> |
| 479 | 481 | <?php |
| 482 | + // phpcs:enable Generic.WhiteSpace.ScopeIndent | |
| 480 | 483 | } |
| 481 | 484 | |
| 482 | 485 | /** |
| 483 | 486 | * @since 6.0 |