diff --git a/src/PhpSpreadsheet/Worksheet/Worksheet.php b/src/PhpSpreadsheet/Worksheet/Worksheet.php index e696e0d8..971f2a98 100644 --- a/src/PhpSpreadsheet/Worksheet/Worksheet.php +++ b/src/PhpSpreadsheet/Worksheet/Worksheet.php @@ -2066,7 +2066,7 @@ class Worksheet implements IComparable */ public function removeTableByName(string $name): self { - foreach($this->tableCollection as $key => $table) { + foreach ($this->tableCollection as $key => $table) { if ($table->getName() === $name) { unset($this->tableCollection[$key]); }