Skip to content

Commit

Permalink
Fix common phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Jul 12, 2023
1 parent ba43067 commit e496148
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions library/Icingadb/Common/DetailActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public function initializeDetailActions(): self
*/
protected function setMultiselectUrl(Url $url): self
{
/** @var BaseHtmlElement $this */
$this->getAttributes()
->registerAttributeCallback('data-icinga-multiselect-url', function () use ($url) {
return $this->getDetailActionsDisabled() ? null : (string) $url;
Expand All @@ -83,7 +82,6 @@ protected function setMultiselectUrl(Url $url): self
*/
protected function setDetailUrl(Url $url): self
{
/** @var BaseHtmlElement $this */
$this->getAttributes()
->registerAttributeCallback('data-icinga-detail-url', function () use ($url) {
return $this->getDetailActionsDisabled() ? null : (string) $url;
Expand Down
2 changes: 1 addition & 1 deletion library/Icingadb/Model/CheckcommandArgument.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ public function createBehaviors(Behaviors $behaviors)
public function createRelations(Relations $relations)
{
$relations->belongsTo('environment', Environment::class);
$relations->belongsTo('checkcommand', CheckCommand::class);
$relations->belongsTo('checkcommand', Checkcommand::class);
}
}
2 changes: 1 addition & 1 deletion library/Icingadb/Model/CheckcommandCustomvar.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function createBehaviors(Behaviors $behaviors)
public function createRelations(Relations $relations)
{
$relations->belongsTo('environment', Environment::class);
$relations->belongsTo('checkcommand', CheckCommand::class);
$relations->belongsTo('checkcommand', Checkcommand::class);
$relations->belongsTo('customvar', Customvar::class);
$relations->belongsTo('customvar_flat', CustomvarFlat::class)
->setCandidateKey('customvar_id')
Expand Down
2 changes: 1 addition & 1 deletion library/Icingadb/Model/CheckcommandEnvvar.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ public function createBehaviors(Behaviors $behaviors)
public function createRelations(Relations $relations)
{
$relations->belongsTo('environment', Environment::class);
$relations->belongsTo('checkcommand', CheckCommand::class);
$relations->belongsTo('checkcommand', Checkcommand::class);
}
}

0 comments on commit e496148

Please sign in to comment.