Skip to content

Commit

Permalink
refactor: fix PHP styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ScuffedNewt authored and github-actions[bot] committed Oct 25, 2024
1 parent 90da415 commit cf41283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Character/CharacterImageTitle.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ public function getDisplayTitleAttribute() {
return $this->title->displayTitle($this->data);
}

return '<div><span class="badge ml-1" style="color: white; background-color: #ddd;">'.(isset($this->data['short']) ? $this->data['short'] : $this->data['full']).'</span></div>';
return '<div><span class="badge ml-1" style="color: white; background-color: #ddd;">'.($this->data['short'] ?? $this->data['full']).'</span></div>';
}
}

0 comments on commit cf41283

Please sign in to comment.