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

@@ -4,7 +4,7 @@ namespace Combodo\iTop\Test\UnitTest\Core;
class QueryBuilderExpressionsTest extends \Combodo\iTop\Test\UnitTest\ItopCustomDatamodelTestCase
{
const CREATE_TEST_ORG = true;
public const CREATE_TEST_ORG = true;
/**
* @inheritDoc
@@ -19,13 +19,13 @@ class QueryBuilderExpressionsTest extends \Combodo\iTop\Test\UnitTest\ItopCustom
$oTagA = \MetaModel::NewObject(\TagSetFieldData::GetTagDataClassName('TestObject', 'tagset'), [
'code' => 'tagA',
'label' => 'Tag A',
'description' => 'Tag known as "A"'
'description' => 'Tag known as "A"',
]);
$oTagA->DBInsert();
$oTagB = \MetaModel::NewObject(\TagSetFieldData::GetTagDataClassName('TestObject', 'tagset'), [
'code' => 'tagB',
'label' => 'Tag B',
'description' => 'Tag known as "B"'
'description' => 'Tag known as "B"',
]);
$oTagB->DBInsert();
@@ -185,7 +185,7 @@ class QueryBuilderExpressionsTest extends \Combodo\iTop\Test\UnitTest\ItopCustom
// Create an indirection
$oSubObject = \MetaModel::NewObject('SubObject', [
'name' => 'subobject for '.$iTestObject,
'testobject_id' => $iTestObject
'testobject_id' => $iTestObject,
]);
$oSubObject->DBInsert();
@@ -200,4 +200,4 @@ class QueryBuilderExpressionsTest extends \Combodo\iTop\Test\UnitTest\ItopCustom
static::assertTrue($oAttDef->Equals($oObject->Get($sAttCode), $oSubObjectFromDB->Get($sExtFieldAttCode)), "Value of attribute '$sAttCode' not correctly read as an external key");
}
}
}
}