Skip to content

Commit

Permalink
Fix some issues found by phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 authored and nilmerg committed Mar 13, 2024
1 parent 7d901a4 commit e818222
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library/Icingadb/Widget/Detail/EventDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ protected function assembleAcknowledgeEvent(AcknowledgementHistory $acknowledgem
if ($acknowledgement->cleared_by) {
$eventInfo[] = new HorizontalKeyValue(
t('Cleared by'),
[new Icon('user', $acknowledgement->cleared_by)]
[new Icon('user'), $acknowledgement->cleared_by]
);
} else {
$expired = false;
Expand Down
2 changes: 1 addition & 1 deletion library/Icingadb/Widget/HostSummaryDonut.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function assembleBody(BaseHtmlElement $body)
->addSlice($this->summary->hosts_down_handled, ['class' => 'slice-state-critical-handled'])
->addSlice($this->summary->hosts_down_unhandled, ['class' => 'slice-state-critical'])
->addSlice($this->summary->hosts_pending, ['class' => 'slice-state-pending'])
->setLabelBig($this->summary->hosts_down_unhandled)
->setLabelBig((string) $this->summary->hosts_down_unhandled)
->setLabelBigUrl(Links::hosts()->setFilter($labelBigUrlFilter)->addParams([
'sort' => 'host.state.last_state_change'
]))
Expand Down
2 changes: 1 addition & 1 deletion library/Icingadb/Widget/ServiceSummaryDonut.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function assembleBody(BaseHtmlElement $body)
->addSlice($this->summary->services_unknown_handled, ['class' => 'slice-state-unknown-handled'])
->addSlice($this->summary->services_unknown_unhandled, ['class' => 'slice-state-unknown'])
->addSlice($this->summary->services_pending, ['class' => 'slice-state-pending'])
->setLabelBig($this->summary->services_critical_unhandled)
->setLabelBig((string) $this->summary->services_critical_unhandled)
->setLabelBigUrl(Links::services()->setFilter($labelBigUrlFilter)->addParams([
'sort' => 'service.state.last_state_change'
]))
Expand Down

0 comments on commit e818222

Please sign in to comment.