From 481dd3c3fb3a04fb1830c0b890dd04ff1c4a627e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Tue, 6 Apr 2021 22:03:15 +0200 Subject: [PATCH] push --- app/Models/Tip.php | 2 +- resources/views/tips/show.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Tip.php b/app/Models/Tip.php index a1aa77e..9185114 100644 --- a/app/Models/Tip.php +++ b/app/Models/Tip.php @@ -68,7 +68,7 @@ class Tip extends Model return array_map(fn (string $url) => new TwitterImage($url), $this->images); } - public static function fromTweet(Tweet $tweet, string $threadSlug = null): static + public static function fromTweet(Tweet $tweet, string $threadSlug = null): self { return new static([ 'title' => (string) Str::of(Str::of($tweet->text)->explode("\n")->first())->rtrim('.')->replaceMatches('/^([^a-zA-Z]*)/', ''), // remove any non-ascii characters from the beginning diff --git a/resources/views/tips/show.blade.php b/resources/views/tips/show.blade.php index ec523b7..0d6ef73 100644 --- a/resources/views/tips/show.blade.php +++ b/resources/views/tips/show.blade.php @@ -1,4 +1,4 @@ - +