N°8796 - Add PHP code style validation in iTop and extensions - format whole code base

This commit is contained in:
odain
2025-11-07 15:39:53 +01:00
parent 12f23113f5
commit 890a2568c8
2110 changed files with 53099 additions and 63885 deletions

View File

@@ -1,4 +1,5 @@
<?php
/*
* @copyright Copyright (C) 2010-2024 Combodo SAS
* @license http://opensource.org/licenses/AGPL-3.0
@@ -6,7 +7,6 @@
namespace Combodo\iTop\Application\UI\Base\Layout\ActivityPanel;
use appUserPreferences;
use BinaryExpression;
use cmdbAbstractObject;
@@ -124,7 +124,9 @@ class ActivityPanelHelper
if (null !== $sChangeOpIdToOffsetFrom) {
$oSearch->AddConditionExpression(
new BinaryExpression(
new FieldExpression('id', 'CO'), '<', new VariableExpression('id')
new FieldExpression('id', 'CO'),
'<',
new VariableExpression('id')
)
);
$aArgs['id'] = $sChangeOpIdToOffsetFrom;
@@ -162,8 +164,7 @@ class ActivityPanelHelper
$iChangeId = $oChangeOp->Get('change');
try {
$oEntry = ActivityEntryFactory::MakeFromCmdbChangeOp($oChangeOp, $oChange);
}
catch (Exception $oException) {
} catch (Exception $oException) {
IssueLog::Debug(static::class.': Could not create entry from CMDBChangeOp #'.$oChangeOp->GetKey().' related to '.$oChangeOp->Get('objclass').'::'.$oChangeOp->Get('objkey').': '.$oException->getMessage());
continue;
}
@@ -192,4 +193,4 @@ class ActivityPanelHelper
return $aResults;
}
}
}