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
@@ -21,7 +22,8 @@ use Dict;
* @internal
* @since 3.0.0
*/
trait tUIContentAreas {
trait tUIContentAreas
{
/** @var iUIContentBlock[] Blocks for the different content parts of the block */
protected $aContentAreasBlocks;
@@ -31,7 +33,8 @@ trait tUIContentAreas {
* @return array
* @see static::ENUM_CONTENT_AREA_MAIN, ...
*/
protected function EnumContentAreas(): array {
protected function EnumContentAreas(): array
{
return array_keys($this->aContentAreasBlocks);
}
@@ -40,7 +43,8 @@ trait tUIContentAreas {
*
* @return \Combodo\iTop\Application\UI\Base\Layout\iUIContentBlock[]
*/
protected function GetContentAreas(): array {
protected function GetContentAreas(): array
{
return $this->aContentAreasBlocks;
}
@@ -51,7 +55,8 @@ trait tUIContentAreas {
*
* @return bool
*/
protected function IsExistingContentArea(string $sAreaId): bool {
protected function IsExistingContentArea(string $sAreaId): bool
{
return isset($this->aContentAreasBlocks[$sAreaId]);
}
@@ -197,7 +202,8 @@ trait tUIContentAreas {
*
* @return $this
*/
protected function RemoveBlockFromContentArea(string $sAreaId, string $sBlockId) {
protected function RemoveBlockFromContentArea(string $sAreaId, string $sBlockId)
{
if (array_key_exists($sAreaId, $this->aContentAreasBlocks)) {
$this->aContentAreasBlocks[$sAreaId]->RemoveSubBlock($sBlockId);
}