mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-27 12:38:44 +02:00
N°8796 - Add PHP code style validation in iTop and extensions - format whole code base
This commit is contained in:
@@ -142,7 +142,7 @@ class NotificationsRepository
|
||||
{
|
||||
$oSearch = DBObjectSearch::FromOQL("SELECT lnkActionNotificationToContact AS lnk WHERE lnk.contact_id = :contact_id");
|
||||
$oSearch->SetInternalParams([
|
||||
"contact_id" => $iContactId
|
||||
"contact_id" => $iContactId,
|
||||
]);
|
||||
|
||||
return new DBObjectSet($oSearch);
|
||||
@@ -232,7 +232,8 @@ class NotificationsRepository
|
||||
public function SearchSubscriptionsByTriggerContactAndSubscription(int $iTriggerId, int $iContactId, string $sSubscription): DBObjectSet
|
||||
{
|
||||
$oSearch = DBObjectSearch::FromOQL("SELECT lnkActionNotificationToContact AS lnk WHERE lnk.contact_id = :contact_id AND lnk.trigger_id = :trigger_id AND lnk.subscribed = :subscription");
|
||||
$oSearch->SetInternalParams([
|
||||
$oSearch->SetInternalParams(
|
||||
[
|
||||
"trigger_id" => $iTriggerId,
|
||||
"contact_id" => $iContactId,
|
||||
"subscription" => $sSubscription]
|
||||
@@ -241,7 +242,6 @@ class NotificationsRepository
|
||||
return new DBObjectSet($oSearch);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Search for subscriptions based on trigger, contact, subscription type, and final class.
|
||||
*
|
||||
@@ -259,7 +259,7 @@ class NotificationsRepository
|
||||
"trigger_id" => $iTriggerId,
|
||||
"contact_id" => $iContactId,
|
||||
"subscription" => $sSubscription,
|
||||
"finalclass" => $sFinalclass
|
||||
"finalclass" => $sFinalclass,
|
||||
]);
|
||||
|
||||
return new DBObjectSet($oSearch);
|
||||
@@ -270,4 +270,4 @@ class NotificationsRepository
|
||||
$oSearch = DBObjectSearch::FromOQL("SELECT Contact AS c JOIN lnkActionNotificationToContact AS lnk ON lnk.contact_id = c.id WHERE lnk.trigger_id = :trigger_id AND lnk.action_id = :action_id AND lnk.subscribed = '0'");
|
||||
return $oSearch;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user