| @@ -478,9 +478,9 @@ | ||
| 478 | 478 | // Loop through rows in reversed order, to search for rowspan trigger keyword. |
| 479 | 479 | $row_idx = $this->last_row_idx; |
| 480 | 480 | |
| 481 | 481 | // Render the table footer rows, if there is at least one extra row. |
| 482 | - if ( $this->render_options['table_foot'] > 0 && $num_rows >= $this->render_options['table_head'] + $this->render_options['table_foot'] ) { | |
| 482 | + if ( $this->render_options['table_foot'] > 0 && $num_rows >= $this->render_options['table_head'] + $this->render_options['table_foot'] ) { // @phpstan-ignore greaterOrEqual.invalid (`table_head` and `table_foot` are integers.) | |
| 483 | 483 | $last_tbody_idx = $this->last_row_idx - $this->render_options['table_foot']; |
| 484 | 484 | while ( $row_idx > $last_tbody_idx ) { |
| 485 | 485 | $tfoot[] = $this->_render_row( $row_idx, 'th' ); |
| 486 | 486 | --$row_idx; |
| @@ -667,9 +667,9 @@ | ||
| 667 | 667 | |
| 668 | 668 | // Legacy support for attributes that are not encouraged in HTML5. |
| 669 | 669 | foreach ( array( 'cellspacing', 'cellpadding', 'border' ) as $attribute ) { |
| 670 | 670 | if ( false !== $this->render_options[ $attribute ] ) { |
| 671 | - $table_attributes[ $attribute ] = (string) absint( $this->render_options[ $attribute ] ); | |
| 671 | + $table_attributes[ $attribute ] = (int) $this->render_options[ $attribute ]; | |
| 672 | 672 | } |
| 673 | 673 | } |
| 674 | 674 | |
| 675 | 675 | /** |
| @@ -703,12 +703,12 @@ | ||
| 703 | 703 | unset( $table_html ); // Unset the potentially large variable to free up memory. |
| 704 | 704 | |
| 705 | 705 | // name/description below table (HTML already generated above). |
| 706 | 706 | if ( $this->render_options['print_name'] && 'below' === $this->render_options['print_name_position'] ) { |
| 707 | - $output .= $print_name_html; | |
| 707 | + $output .= $print_name_html; // @phpstan-ignore variable.undefined (The variable is set above.) | |
| 708 | 708 | } |
| 709 | 709 | if ( $this->render_options['print_description'] && 'below' === $this->render_options['print_description_position'] ) { |
| 710 | - $output .= $print_description_html; | |
| 710 | + $output .= $print_description_html; // @phpstan-ignore variable.undefined (The variable is set above.) | |
| 711 | 711 | } |
| 712 | 712 | |
| 713 | 713 | /** |
| 714 | 714 | * Filters the generated HTML code for the table and HTML elements around it. |
| @@ -1009,13 +1009,8 @@ | ||
| 1009 | 1009 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;{$rtl_direction} |
| 1010 | 1010 | } |
| 1011 | 1011 | p { |
| 1012 | 1012 | font-size: 13px; |
| 1013 | - } | |
| 1014 | - .preview { | |
| 1015 | - overflow-x: auto; | |
| 1016 | - overflow-y: hidden; | |
| 1017 | - scroll-behavior: smooth; | |
| 1018 | 1013 | } |
| 1019 | 1014 | {$default_css_minified} |
| 1020 | 1015 | </style> |
| 1021 | 1016 | CSS; |