From 7e6b56878b58765ac0f26b0f9665bcd1b66c486d Mon Sep 17 00:00:00 2001 From: tabuna Date: Sun, 14 Apr 2024 02:07:07 +0000 Subject: [PATCH] Fixed code style --- src/Screen/Components/Cells/Text.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Screen/Components/Cells/Text.php b/src/Screen/Components/Cells/Text.php index 12774028c..0cb724824 100644 --- a/src/Screen/Components/Cells/Text.php +++ b/src/Screen/Components/Cells/Text.php @@ -19,7 +19,7 @@ class Text extends Component */ public function __construct( protected mixed $value, - protected ?string $title = null, + protected ?string $title = null, protected ?string $text = null, protected ?int $words = 30, protected ?int $clamp = 5, @@ -36,7 +36,7 @@ public function render() return Blade::render('
@empty(!$title){{ $title }}@endempty {{ $text }}
', [ - 'class' => $this->clamp ? 'line-clamp-' . $this->clamp : '', + 'class' => $this->clamp ? 'line-clamp-'.$this->clamp : '', 'title' => $this->title ? Str::of($this->value->getContent($this->title))->words($this->words) : '', 'text' => Str::of($this->value->getContent($this->text))->words($this->words), ]);