Skip to content

Commit

Permalink
fix: cs errors
Browse files Browse the repository at this point in the history
  • Loading branch information
raviks789 committed Oct 8, 2024
1 parent 9506986 commit cd3b5a3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions library/Icingadb/Common/StateBadges.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ abstract class StateBadges extends BaseHtmlElement
/** @var string Prefix */
protected $prefix;

/** @var Url Badge link */
/** @var ?Url Badge link */
protected $url;

protected $tag = 'ul';
Expand Down Expand Up @@ -82,7 +82,7 @@ protected function getBaseUrl(): ?Url
*/
protected function getStateInt(string $state): int
{
throw new InvalidArgumentException('%s is not a valid state', $state);
throw new InvalidArgumentException('%s is not a valid state', $state);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions library/Icingadb/Widget/ItemList/RedundancyGroupListItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ protected function assembleCaption(BaseHtmlElement $caption): void
/** @var RedundancyGroup $data */
$data = $members->first();

if($data) {
if ($data) {
$caption->addHtml(new PluginOutputContainer(
(new PluginOutput($data->objects_output . "\n" .$data->objects_long_output))
(new PluginOutput($data->objects_output . "\n" . $data->objects_long_output))
->setCommandName($data->objects_checkcommand_name)
));
}
Expand Down
3 changes: 1 addition & 2 deletions library/Icingadb/Widget/ItemList/StateListItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ protected function assembleTitle(BaseHtmlElement $title): void
->addAttributes([
'class' => 'affected-objects',
'title' => sprintf(t('Up to %s affected objects'), $total)
])
);
]));
}
}

Expand Down
1 change: 0 additions & 1 deletion library/Icingadb/Widget/ObjectsStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Icinga\Module\Icingadb\Widget;

use Icinga\Chart\Donut;

use Icinga\Module\Icingadb\Model\RedundancyGroupParentStateSummary;
use Icinga\Module\Icingadb\Widget\Detail\ObjectStatistics;
use ipl\Html\Text;
Expand Down

0 comments on commit cd3b5a3

Please sign in to comment.