From 4d2b00dafc9d0015084354e9a064d4a1515ed88f Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Tue, 14 Jun 2022 12:19:54 +0200 Subject: [PATCH] phpcs fxes --- src/PhpSpreadsheet/Worksheet/Worksheet.php | 2 +- tests/PhpSpreadsheetTests/CommentTest.php | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/PhpSpreadsheet/Worksheet/Worksheet.php b/src/PhpSpreadsheet/Worksheet/Worksheet.php index b9a168c2..c8236993 100644 --- a/src/PhpSpreadsheet/Worksheet/Worksheet.php +++ b/src/PhpSpreadsheet/Worksheet/Worksheet.php @@ -2605,7 +2605,7 @@ class Worksheet implements IComparable if (isset($this->comments[$cellAddress])) { unset($this->comments[$cellAddress]); } - + return $this; } diff --git a/tests/PhpSpreadsheetTests/CommentTest.php b/tests/PhpSpreadsheetTests/CommentTest.php index e55fe9cc..aacd538f 100644 --- a/tests/PhpSpreadsheetTests/CommentTest.php +++ b/tests/PhpSpreadsheetTests/CommentTest.php @@ -84,13 +84,14 @@ class CommentTest extends TestCase $comment->setText($test); self::assertEquals('This is a test comment', (string) $comment); } - - public function testRemoveComment(): void { + + public function testRemoveComment(): void + { $spreadsheet = new Spreadsheet(); $sheet = $spreadsheet->getActiveSheet(); $sheet->getComment('A2')->getText()->createText('Comment to delete'); - self::assertArrayHasKey('A2',$sheet->getComments()); + self::assertArrayHasKey('A2', $sheet->getComments()); $sheet->removeComment('A2'); self::assertEmpty($sheet->getComments()); - } + } }