From 175fa47b74632dcaa6b2940b64cfeeb9bec61fca Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Wed, 5 Jul 2017 17:59:33 +0200 Subject: [PATCH] Apply fixes from StyleCI (#74) --- src/Browsershot.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Browsershot.php b/src/Browsershot.php index 7c17ed4d..c13a316c 100644 --- a/src/Browsershot.php +++ b/src/Browsershot.php @@ -142,30 +142,30 @@ public function applyManipulations(string $imagePath) public function createScreenshotCommand(string $workingDirectory): string { - $command = "cd " - . escapeshellarg($workingDirectory) - . ";" - . escapeshellarg($this->findChrome()) - . " --headless --screenshot " - . escapeshellarg($this->url); + $command = 'cd ' + .escapeshellarg($workingDirectory) + .';' + .escapeshellarg($this->findChrome()) + .' --headless --screenshot ' + .escapeshellarg($this->url); if ($this->disableGpu) { $command .= ' --disable-gpu'; } if ($this->windowWidth > 0) { - $command .= " --window-size=" - . escapeshellarg($this->windowWidth) - . "," - . escapeshellarg($this->windowHeight); + $command .= ' --window-size=' + .escapeshellarg($this->windowWidth) + .',' + .escapeshellarg($this->windowHeight); } if ($this->hideScrollbars) { $command .= ' --hide-scrollbars'; } - if (!empty($this->userAgent)) { - $command .= " --user-agent=" . escapeshellarg($this->userAgent); + if (! empty($this->userAgent)) { + $command .= ' --user-agent='.escapeshellarg($this->userAgent); } return $command;