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)
2605
2605
if (isset ($ this ->comments [$ cellAddress ])) {
2606
2606
unset($ this ->comments [$ cellAddress ]);
2607
2607
}
2608
-
2608
+
2609
2609
return $ this ;
2610
2610
}
2611
2611
Original file line number Diff line number Diff line change @@ -84,13 +84,14 @@ public function testSetText(): void
84
84
$ comment ->setText ($ test );
85
85
self ::assertEquals ('This is a test comment ' , (string ) $ comment );
86
86
}
87
-
88
- public function testRemoveComment (): void {
87
+
88
+ public function testRemoveComment (): void
89
+ {
89
90
$ spreadsheet = new Spreadsheet ();
90
91
$ sheet = $ spreadsheet ->getActiveSheet ();
91
92
$ sheet ->getComment ('A2 ' )->getText ()->createText ('Comment to delete ' );
92
- self ::assertArrayHasKey ('A2 ' ,$ sheet ->getComments ());
93
+ self ::assertArrayHasKey ('A2 ' , $ sheet ->getComments ());
93
94
$ sheet ->removeComment ('A2 ' );
94
95
self ::assertEmpty ($ sheet ->getComments ());
95
- }
96
+ }
96
97
}
You can’t perform that action at this time.
0 commit comments