Skip to content

Commit

Permalink
IncidentDetail: Add method return type and use HtmlElement
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Jan 29, 2025
1 parent d321a82 commit 296b5a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Notifications/Widget/Detail/IncidentDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected function createSource()
];
}

protected function createObjectTag()
protected function createObjectTag(): array
{
$tags = [];
foreach ($this->incident->object->object_extra_tag as $extraTag) {
Expand All @@ -104,7 +104,7 @@ protected function createObjectTag()
}

return [
Html::tag('h2', t('Object Tags')),
new HtmlElement('h2', null, new Text(t('Object Tags'))),
(new Table())
->addHtml(...$tags)
->addAttributes(['class' => 'object-tags-table'])
Expand Down

0 comments on commit 296b5a1

Please sign in to comment.