Skip to content

Commit 3fd16e3

Browse files
committed
Cleaning some code style
1 parent 80320e1 commit 3fd16e3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Data/Asset.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,14 @@ public function updatedAt(): null|string
8989
return $this->getFormattedDateTime('updated_at', "", format: "Y-m-d");
9090
}
9191

92-
public function setExternalUrl($url): self
92+
public function setExternalUrl(string $url): self
9393
{
9494

9595
$this->set("filename", $url);
9696
$this->set("is_external_url", true);
9797
return $this;
9898
}
99+
99100
public static function emptyAsset(): Asset
100101
{
101102
return self::make([

src/Data/StoryComponent.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function setAsset(string $field, Asset $asset): self
9090

9191
public function addBlock(string $field, StoryComponent $component): self
9292
{
93-
$blocks =$this->getArray($field);
93+
$blocks = $this->getArray($field);
9494
$blocks[] = $component->toArray();
9595
$this->set($field, $blocks);
9696
return $this;

0 commit comments

Comments
 (0)