Fix PHP CS

This commit is contained in:
v-dumas
2025-11-17 15:04:19 +01:00
parent 53de040934
commit ed360edb83
3 changed files with 10 additions and 14 deletions

View File

@@ -661,17 +661,15 @@ abstract class ItopDataTestCase extends ItopTestCase
{
/** @var \ormLinkSet $oSet */
$oSet = $oUser->Get('profile_list');
foreach ($oSet as $oUserProfile)
{
if ($oUserProfile->Get('profileid') == $iProfileId)
{
foreach ($oSet as $oUserProfile) {
if ($oUserProfile->Get('profileid') == $iProfileId) {
$oSet->RemoveItem($oUserProfile->GetKey());
break;
}
}
$oUser = $this->updateObject(User::class, $oUser->GetKey(), array(
$oUser = $this->updateObject(User::class, $oUser->GetKey(), [
'profile_list' => $oSet,
));
]);
return $oUser;
}