Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pboivin committed May 9, 2024
1 parent 223fcb7 commit 2bc3055
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Forms/Components/Preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ class Preview extends Component
{
protected string $view = 'filament-peek::components.preview';

protected null | string | Closure $previewView = null;
protected null|string|Closure $previewView = null;

protected null | string | Closure $previewUrl = null;
protected null|string|Closure $previewUrl = null;

protected array | Closure $previewData = [];
protected array|Closure $previewData = [];

public static function make(): static
{
return app(static::class)->configure();
}

public function previewView(null | string | Closure $view): self
public function previewView(null|string|Closure $view): self
{
$this->previewView = $view;

Expand All @@ -32,7 +32,7 @@ public function getPreviewView(): ?string
return $this->evaluate($this->previewView);
}

public function previewUrl(null | string | Closure $url): self
public function previewUrl(null|string|Closure $url): self
{
$this->previewUrl = $url;

Expand All @@ -44,7 +44,7 @@ public function getPreviewUrl(): ?string
return $this->evaluate($this->previewUrl);
}

public function previewData(array | Closure $data): self
public function previewData(array|Closure $data): self
{
$this->previewData = $data;

Expand All @@ -62,7 +62,7 @@ public function getPreviewContent(): ?string
return null;
}

if (!($view = $this->getPreviewView())) {
if (! ($view = $this->getPreviewView())) {
return null;
}

Expand Down

0 comments on commit 2bc3055

Please sign in to comment.