Remove table by name cs fix
This commit is contained in:
parent
feffb76944
commit
4db82032b4
|
|
@ -2066,7 +2066,7 @@ class Worksheet implements IComparable
|
||||||
*/
|
*/
|
||||||
public function removeTableByName(string $name): self
|
public function removeTableByName(string $name): self
|
||||||
{
|
{
|
||||||
foreach($this->tableCollection as $key => $table) {
|
foreach ($this->tableCollection as $key => $table) {
|
||||||
if ($table->getName() === $name) {
|
if ($table->getName() === $name) {
|
||||||
unset($this->tableCollection[$key]);
|
unset($this->tableCollection[$key]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue