Skip to content

Commit 4d2b00d

Browse files
author
MarkBaker
committed
phpcs fxes
1 parent 7f62fba commit 4d2b00d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/PhpSpreadsheet/Worksheet/Worksheet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

tests/PhpSpreadsheetTests/CommentTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)