Skip to content

Commit

Permalink
Apply fixes from StyleCI (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored Aug 6, 2017
1 parent b426cf2 commit cdf6a9b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Browsershot.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ protected function createPdfCommand($targetPath): string
{
$command =
escapeshellarg($this->findChrome())
. " --headless --print-to-pdf={$targetPath}";
." --headless --print-to-pdf={$targetPath}";

if ($this->disableGpu) {
$command .= ' --disable-gpu';
Expand All @@ -202,10 +202,9 @@ protected function createPdfCommand($targetPath): string
$command .= ' --user-agent='.escapeshellarg($this->userAgent);
}

$command .= ' ' .escapeshellarg($this->url);
$command .= ' '.escapeshellarg($this->url);

return $command;

}

protected function findChrome(): string
Expand Down

0 comments on commit cdf6a9b

Please sign in to comment.