From 6a51ea1de0097061fe21cdc59fb30e894d4bc2fa Mon Sep 17 00:00:00 2001 From: freekmurze Date: Wed, 27 Dec 2023 11:56:30 +0000 Subject: [PATCH] Fix styling --- src/Exceptions/CouldNotCreatePdf.php | 1 - src/Pdf.php | 2 +- tests/PdfTest.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Exceptions/CouldNotCreatePdf.php b/src/Exceptions/CouldNotCreatePdf.php index d8cec8a..cfb5375 100644 --- a/src/Exceptions/CouldNotCreatePdf.php +++ b/src/Exceptions/CouldNotCreatePdf.php @@ -6,5 +6,4 @@ class CouldNotCreatePdf extends Exception { - } diff --git a/src/Pdf.php b/src/Pdf.php index d11ba4e..d644ce3 100755 --- a/src/Pdf.php +++ b/src/Pdf.php @@ -212,7 +212,7 @@ protected function getHtml(): string if ($this->html) { return $this->html; - }; + } return ' '; } diff --git a/tests/PdfTest.php b/tests/PdfTest.php index 0d17740..6e0334b 100644 --- a/tests/PdfTest.php +++ b/tests/PdfTest.php @@ -79,7 +79,7 @@ expect($this->targetPath)->toContainText('This is a test'); }); -it('can create an empty pdf',function() { +it('can create an empty pdf', function () { Pdf::html('')->save($this->targetPath); expect($this->targetPath)->toBeFile();