Skip to content

Commit

Permalink
Fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna authored and github-actions[bot] committed Apr 14, 2024
1 parent b966397 commit 7e6b568
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Screen/Components/Cells/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -36,7 +36,7 @@ public function render()
return Blade::render('<div class="text-balance line-clamp {{ $class }}">
@empty(!$title)<strong class="d-block">{{ $title }}</strong>@endempty
<span class="text-muted">{{ $text }}</span></div>', [
'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),
]);
Expand Down

0 comments on commit 7e6b568

Please sign in to comment.