From 6fc6c0c7c9c720d2d0429c853c7b573bf51e58d2 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Tue, 20 Aug 2024 15:23:47 +0000 Subject: [PATCH] Fix styling --- src/Browsershot.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Browsershot.php b/src/Browsershot.php index 3ab72b5..3838ba7 100644 --- a/src/Browsershot.php +++ b/src/Browsershot.php @@ -70,17 +70,17 @@ class Browsershot public static function url(string $url): static { - return (new static())->setUrl($url); + return (new static)->setUrl($url); } public static function html(string $html): static { - return (new static())->setHtml($html); + return (new static)->setHtml($html); } public static function htmlFromFilePath(string $filePath): static { - return (new static())->setHtmlFromFilePath($filePath); + return (new static)->setHtmlFromFilePath($filePath); } public function __construct(string $url = '', bool $deviceEmulate = false) @@ -91,7 +91,7 @@ public function __construct(string $url = '', bool $deviceEmulate = false) $this->windowSize(800, 600); } - $this->imageManipulations = new ImageManipulations(); + $this->imageManipulations = new ImageManipulations; } public function setNodeBinary(string $nodeBinary): static