Skip to content

Commit

Permalink
Formatting Fix for PHPCS
Browse files Browse the repository at this point in the history
Adjusted formatting of code to pass PHPCS checks.
  • Loading branch information
srvrguy committed Nov 26, 2024
1 parent aee0102 commit 0a738a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions library/Pdfexport/HeadlessChrome.php
Original file line number Diff line number Diff line change
Expand Up @@ -763,8 +763,10 @@ protected function jsonVersion($host, $port)
// ref: https://issues.chromium.org/issues/40090537
if (strstr($e->getMessage(), 'Host header is specified and is not an IP address or localhost.')) {
$response = $client->request(
'GET', sprintf('http://%s:%s/json/version', $host, $port),
['headers' => ['Host' => null]]);
'GET',
sprintf('http://%s:%s/json/version', $host, $port),
['headers' => ['Host' => null]]
);
} else {
throw $e;
}
Expand Down

0 comments on commit 0a738a5

Please sign in to comment.