Skip to content

Commit

Permalink
Fix codestyles
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander De la Marche committed Feb 27, 2023
1 parent 732c47a commit 5a9c6f1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Service/PdfGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ public function __construct(
* @param array<string, string> $printOptions
* @param array<string, string> $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 {
Expand All @@ -34,7 +38,7 @@ public function generate(string $html, string $path, ?array $printOptions = null
'printBackground' => true,
'displayHeaderFooter' => true,
'preferCSSPageSize' => true,
'headerTemplate'=> "<div></div>",
'headerTemplate' => "<div></div>",
'footerTemplate' => "<div></div>",
'scale' => 1.0,
];
Expand Down

0 comments on commit 5a9c6f1

Please sign in to comment.