Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjia90 authored and github-actions[bot] committed Feb 12, 2024
1 parent b72ac53 commit fb647d0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Processor/Gotenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ public function getPdfFromString(string $html, array $params = [], bool $returnF
} else {
// gotenberg-php v1 BC Layer for unsupported methods in v2
if (isset($params['userAgent']) && method_exists($chromium, 'userAgent')) {
$chromium->userAgent($params['userAgent']);
$chromium->userAgent($params['userAgent']);
}
if (isset($params['pdfFormat'])&& method_exists($chromium, 'pdfFormat')) {
$chromium->pdfFormat($params['pdfFormat']);
$chromium->pdfFormat($params['pdfFormat']);
}
}

Expand Down Expand Up @@ -155,7 +155,6 @@ public function getPdfFromString(string $html, array $params = [], bool $returnF
$chromium->paperSize($params['paperWidth'] ?? 8.5, $params['paperHeight'] ?? 11);
}


if (isset($params['extraHttpHeaders'])) {
$chromium->extraHttpHeaders($params['extraHttpHeaders']);
}
Expand Down

0 comments on commit fb647d0

Please sign in to comment.