PluginProbe
TablePress – Tables in WordPress made easy / 3.4
TablePress – Tables in WordPress made easy v3.4
3.4 3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 All 45 releases
← All changes | classes/class-import-phpspreadsheet.php +3 -1 3.3.2 → 3.4 View file →
@@ -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 }