File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
src/PhpSpreadsheet/Worksheet
tests/PhpSpreadsheetTests Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2605,7 +2605,7 @@ public function removeComment($cellCoordinate)
26052605 if (isset ($ this ->comments [$ cellAddress ])) {
26062606 unset($ this ->comments [$ cellAddress ]);
26072607 }
2608-
2608+
26092609 return $ this ;
26102610 }
26112611
Original file line number Diff line number Diff line change @@ -84,13 +84,14 @@ public function testSetText(): void
8484 $ comment ->setText ($ test );
8585 self ::assertEquals ('This is a test comment ' , (string ) $ comment );
8686 }
87-
88- public function testRemoveComment (): void {
87+
88+ public function testRemoveComment (): void
89+ {
8990 $ spreadsheet = new Spreadsheet ();
9091 $ sheet = $ spreadsheet ->getActiveSheet ();
9192 $ sheet ->getComment ('A2 ' )->getText ()->createText ('Comment to delete ' );
92- self ::assertArrayHasKey ('A2 ' ,$ sheet ->getComments ());
93+ self ::assertArrayHasKey ('A2 ' , $ sheet ->getComments ());
9394 $ sheet ->removeComment ('A2 ' );
9495 self ::assertEmpty ($ sheet ->getComments ());
95- }
96+ }
9697}
You can’t perform that action at this time.
0 commit comments