More Dead Code

I sure wish Scrutinizer would give a complete report.
This commit is contained in:
oleibman
2025-02-15 20:31:26 -08:00
parent 7f0bcb8aca
commit b64842094a
4 changed files with 10 additions and 11 deletions
@@ -96,7 +96,7 @@ class ColumnTest extends SetupTeardown
$result = $columnFilter->setJoin(Column::AUTOFILTER_COLUMN_JOIN_AND);
$result = $columnFilter->getJoin();
$result = $result->getJoin();
self::assertEquals(Column::AUTOFILTER_COLUMN_JOIN_AND, $result);
}
@@ -174,10 +174,9 @@ class ColumnTest extends SetupTeardown
];
foreach ($attributeSet as $attributeName => $attributeValue) {
// Setters return the instance to implement the fluent interface
$result = $columnFilter->setAttribute($attributeName, $attributeValue);
$columnFilter->setAttribute($attributeName, $attributeValue);
}
self::assertSame($attributeSet, $result->getAttributes());
self::assertSame($attributeSet, $columnFilter->getAttributes());
}
public function testGetAttribute(): void
@@ -67,11 +67,11 @@ class ColumnTest extends SetupTeardown
$label = 'Total';
$result = $column->setTotalsRowLabel($label);
self::assertEquals($label, $column->getTotalsRowLabel());
self::assertEquals($label, $result->getTotalsRowLabel());
$function = 'sum';
$result = $column->setTotalsRowFunction($function);
self::assertEquals($function, $column->getTotalsRowFunction());
self::assertEquals($function, $result->getTotalsRowFunction());
$formula = '=SUM(Sales_Data[[#This Row],[Q1]:[Q4]])';
$result = $column->setColumnFormula($formula);
@@ -19,16 +19,16 @@ class TableStyleTest extends SetupTeardown
$result = $style->setTheme(TableStyle::TABLE_STYLE_DARK1);
self::assertEquals(TableStyle::TABLE_STYLE_DARK1, $result->getTheme());
$result = $style->setShowFirstColumn(true);
$style->setShowFirstColumn(true);
self::assertTrue($style->getShowFirstColumn());
$result = $style->setShowLastColumn(true);
$style->setShowLastColumn(true);
self::assertTrue($style->getShowLastColumn());
$result = $style->setShowRowStripes(true);
$style->setShowRowStripes(true);
self::assertTrue($style->getShowRowStripes());
$result = $style->setShowColumnStripes(true);
$style->setShowColumnStripes(true);
self::assertTrue($style->getShowColumnStripes());
}
@@ -116,7 +116,7 @@ class TableTest extends SetupTeardown
self::assertFalse($result->getShowHeaderRow());
$result = $table->setShowTotalsRow(true);
self::assertTrue($table->getShowTotalsRow());
self::assertTrue($result->getShowTotalsRow());
}
public function testGetWorksheet(): void