mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°8796 - Add PHP code style validation in iTop and extensions - format whole code base
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user