| @@ -7,8 +7,10 @@ | ||
| 7 | 7 | * @author Tobias Bäthge |
| 8 | 8 | * @since 2.0.0 |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | +declare(strict_types=1); | |
| 12 | + | |
| 11 | 13 | use TablePress\Import\File; |
| 12 | 14 | |
| 13 | 15 | // Prohibit direct script loading. |
| 14 | 16 | defined( 'ABSPATH' ) || die( 'No direct script access allowed!' ); |
| @@ -364,9 +366,9 @@ | ||
| 364 | 366 | if ( $row_idx === $first_cell[1] && $column_idx === $first_cell[0] ) { |
| 365 | 367 | continue; // Keep value of first cell. |
| 366 | 368 | } elseif ( $row_idx === $first_cell[1] && $column_idx > $first_cell[0] ) { |
| 367 | 369 | $table['data'][ $row_idx - 1 ][ $column_idx - 1 ] = '#colspan#'; |
| 368 | - } elseif ( $row_idx > $first_cell[1] && $column_idx === $first_cell[0] ) { // @phpstan-ignore booleanAnd.alwaysFalse, identical.alwaysFalse | |
| 370 | + } elseif ( $row_idx > $first_cell[1] && $column_idx === $first_cell[0] ) { | |
| 369 | 371 | $table['data'][ $row_idx - 1 ][ $column_idx - 1 ] = '#rowspan#'; |
| 370 | 372 | } else { |
| 371 | 373 | $table['data'][ $row_idx - 1 ][ $column_idx - 1 ] = '#span#'; |
| 372 | 374 | } |