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
@@ -62,8 +63,7 @@ class ObjectRepository
}
return $aResult;
}
catch (Exception $e) {
} catch (Exception $e) {
ExceptionLog::LogException($e);
@@ -103,8 +103,7 @@ class ObjectRepository
// return object array
return ObjectRepository::DBSetToObjectArray($oDbObjectSet, $sObjectClass, $aFieldsToLoad);
}
catch (Exception $e) {
} catch (Exception $e) {
ExceptionLog::LogException($e);
@@ -234,11 +233,10 @@ class ObjectRepository
}
// Link
$aData['link'] = utils::GetAbsoluteUrlAppRoot() . "pages/UI.php?operation=details&class=$sClass&id={$oDbObject->GetKey()}";
$aData['link'] = utils::GetAbsoluteUrlAppRoot()."pages/UI.php?operation=details&class=$sClass&id={$oDbObject->GetKey()}";
return $aData;
}
catch (Exception $e) {
} catch (Exception $e) {
ExceptionLog::LogException($e);
@@ -263,8 +261,7 @@ class ObjectRepository
}
return $oThisObj;
}
catch (Exception $e) {
} catch (Exception $e) {
return null;
}
}
@@ -315,7 +312,6 @@ class ObjectRepository
return ObjectRepository::ComputeOthersData($oObject, $sObjectClass, $aObjectData, $aComplementAttributeSpec, $sObjectImageAttCode);
}
/**
* DeleteFromOql.
*
@@ -340,8 +336,7 @@ class ObjectRepository
// return operation success
return true;
}
catch (Exception $e) {
} catch (Exception $e) {
ExceptionLog::LogException($e);
@@ -350,5 +345,4 @@ class ObjectRepository
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
/**
* Copyright (C) 2013-2024 Combodo SAS
*
@@ -37,4 +38,4 @@ interface iDataPostProcessor
*/
public static function Execute(array $aData, array $aSettings): array;
}
}