Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
pxlrbt authored and github-actions[bot] committed Feb 13, 2024
1 parent deaea0b commit 66519d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Drivers/BrowsershotDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class BrowsershotDriver implements Driver
{
protected static ?Closure $configureUsing = null;

public static function configureUsing(Closure $callback): void {
public static function configureUsing(Closure $callback): void
{
static::$configureUsing = $callback;
}

Expand All @@ -22,7 +23,7 @@ public function getData(Pdfable $pdf): ?string
$browser = Browsershot::html($html)
->paperSize($page->getWidth(), $page->getHeight())
->margins(...$page->getMargins());

if (self::$configureUsing !== null) {
$browser = call_user_func(static::$configureUsing, $browser);
}
Expand Down

0 comments on commit 66519d6

Please sign in to comment.