Skip to content

Commit

Permalink
CheckStatistics: Show a check interval of zero
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Oct 13, 2023
1 parent 5ad5a82 commit ceddd07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icingadb/Widget/Detail/CheckStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ protected function assembleBody(BaseHtmlElement $body)
Attributes::create(['class' => 'interval-line']),
new VerticalKeyValue(
t('Interval'),
$checkInterval
$checkInterval !== null
? Format::seconds($checkInterval)
: (new EmptyState(t('n. a.')))->setTag('span')

Check failure on line 215 in library/Icingadb/Widget/Detail/CheckStatistics.php

View workflow job for this annotation

GitHub Actions / Static analysis for php 7.2 on ubuntu-latest

Else branch is unreachable because ternary operator condition is always true.

Check failure on line 215 in library/Icingadb/Widget/Detail/CheckStatistics.php

View workflow job for this annotation

GitHub Actions / Static analysis for php 7.3 on ubuntu-latest

Else branch is unreachable because ternary operator condition is always true.

Check failure on line 215 in library/Icingadb/Widget/Detail/CheckStatistics.php

View workflow job for this annotation

GitHub Actions / Static analysis for php 7.4 on ubuntu-latest

Else branch is unreachable because ternary operator condition is always true.

Check failure on line 215 in library/Icingadb/Widget/Detail/CheckStatistics.php

View workflow job for this annotation

GitHub Actions / Static analysis for php 8.0 on ubuntu-latest

Else branch is unreachable because ternary operator condition is always true.

Check failure on line 215 in library/Icingadb/Widget/Detail/CheckStatistics.php

View workflow job for this annotation

GitHub Actions / Static analysis for php 8.1 on ubuntu-latest

Else branch is unreachable because ternary operator condition is always true.

Check failure on line 215 in library/Icingadb/Widget/Detail/CheckStatistics.php

View workflow job for this annotation

GitHub Actions / Static analysis for php 8.2 on ubuntu-latest

Else branch is unreachable because ternary operator condition is always true.
)
Expand Down

0 comments on commit ceddd07

Please sign in to comment.