From 5a9c6f15bdd1668143192576a222b3bf46f2ddba Mon Sep 17 00:00:00 2001 From: Sander De la Marche Date: Mon, 27 Feb 2023 10:35:18 +0100 Subject: [PATCH] Fix codestyles --- src/Service/PdfGenerator.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Service/PdfGenerator.php b/src/Service/PdfGenerator.php index c364acf..231bad6 100644 --- a/src/Service/PdfGenerator.php +++ b/src/Service/PdfGenerator.php @@ -20,8 +20,12 @@ public function __construct( * @param array $printOptions * @param array $browserOptions */ - public function generate(string $html, string $path, ?array $printOptions = null, ?array $browserOptions = null): string - { + public function generate( + string $html, + string $path, + ?array $printOptions = null, + ?array $browserOptions = null + ): string { $browser = $this->browserFactory->createBrowser($browserOptions ?? []); try { @@ -34,7 +38,7 @@ public function generate(string $html, string $path, ?array $printOptions = null 'printBackground' => true, 'displayHeaderFooter' => true, 'preferCSSPageSize' => true, - 'headerTemplate'=> "
", + 'headerTemplate' => "
", 'footerTemplate' => "
", 'scale' => 1.0, ];