Skip to content

Commit 19093b5

Browse files
committed
fix php cs
1 parent c00eb08 commit 19093b5

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/TwitterType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ abstract class TwitterType extends BaseObject
99
public function __construct(?string $title = null)
1010
{
1111
$this->setProperty(self::PREFIX, 'card', $this->type);
12-
$this->when(!empty($title), fn () => $this->title($title));
12+
$this->when(! empty($title), fn () => $this->title($title));
1313
}
1414

1515
public static function make(?string $title = null)
@@ -41,7 +41,7 @@ public function description(string $description)
4141
public function image(string $image, ?string $alt = null)
4242
{
4343
$this->setProperty(self::PREFIX, 'image', $image);
44-
$this->when(!empty($alt), fn () => $this->setProperty(self::PREFIX, 'image:alt', $alt));
44+
$this->when(! empty($alt), fn () => $this->setProperty(self::PREFIX, 'image:alt', $alt));
4545

4646
return $this;
4747
}

src/Type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ abstract class Type extends BaseObject
1313
public function __construct(?string $title = null)
1414
{
1515
$this->setProperty('og', 'type', $this->type);
16-
$this->when(!empty($title), fn () => $this->title($title));
16+
$this->when(! empty($title), fn () => $this->title($title));
1717
}
1818

1919
public static function make(?string $title = null)

src/Types/Video/Episode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function series(string $url)
2121
public function actor(string $url, ?string $role = null)
2222
{
2323
$this->addProperty(self::PREFIX, 'actor', $url);
24-
$this->when(!empty($role), fn () => $this->addProperty(self::PREFIX, 'actor:role', $role));
24+
$this->when(! empty($role), fn () => $this->addProperty(self::PREFIX, 'actor:role', $role));
2525

2626
return $this;
2727
}

src/Types/Video/Movie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Movie extends Type
1414
public function actor(string $url, ?string $role = null)
1515
{
1616
$this->addProperty(self::PREFIX, 'actor', $url);
17-
$this->when(!empty($role), fn () => $this->addProperty(self::PREFIX, 'actor:role', $role));
17+
$this->when(! empty($role), fn () => $this->addProperty(self::PREFIX, 'actor:role', $role));
1818

1919
return $this;
2020
}

src/Types/Video/Other.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Other extends Type
1414
public function actor(string $url, ?string $role = null)
1515
{
1616
$this->addProperty(self::PREFIX, 'actor', $url);
17-
$this->when(!empty($role), fn () => $this->addProperty(self::PREFIX, 'actor:role', $role));
17+
$this->when(! empty($role), fn () => $this->addProperty(self::PREFIX, 'actor:role', $role));
1818

1919
return $this;
2020
}

src/Types/Video/TvShow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class TvShow extends Type
1414
public function actor(string $url, ?string $role = null)
1515
{
1616
$this->addProperty(self::PREFIX, 'actor', $url);
17-
$this->when(!empty($role), fn () => $this->addProperty(self::PREFIX, 'actor:role', $role));
17+
$this->when(! empty($role), fn () => $this->addProperty(self::PREFIX, 'actor:role', $role));
1818

1919
return $this;
2020
}

0 commit comments

Comments
 (0)