Skip to content

Commit

Permalink
php cs fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach committed Jul 28, 2021
1 parent 32a6411 commit e204590
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Browsershot.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class Browsershot
/** @var \Spatie\Image\Manipulations */
protected $imageManipulations;

const POLLING_REQUEST_ANIMATION_FRAME = 'raf';
const POLLING_MUTATION = 'mutation';
public const POLLING_REQUEST_ANIMATION_FRAME = 'raf';
public const POLLING_MUTATION = 'mutation';

/**
* @param string $url
Expand All @@ -48,7 +48,7 @@ class Browsershot
*/
public static function url(string $url)
{
return (new static)->setUrl($url);
return (new static())->setUrl($url);
}

/**
Expand All @@ -58,7 +58,7 @@ public static function url(string $url)
*/
public static function html(string $html)
{
return (new static)->setHtml($html);
return (new static())->setHtml($html);
}

public function __construct(string $url = '', bool $deviceEmulate = false)
Expand Down Expand Up @@ -586,7 +586,6 @@ public function base64pdf(): string
return $this->callBrowser($command);
}


public function evaluate(string $pageFunction): string
{
$command = $this->createEvaluateCommand($pageFunction);
Expand Down

0 comments on commit e204590

Please sign in to comment.