🎨 N°8772 - CS Fixer

This commit is contained in:
Eric Espie
2025-11-19 14:49:20 +01:00
parent 65bd6d9fd0
commit bd44f971e4
5 changed files with 9 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
<?php
/*
* @copyright Copyright (C) 2010-2025 Combodo SAS
* @license http://opensource.org/licenses/AGPL-3.0
@@ -16,4 +17,4 @@ class DIException extends \Exception
parent::__construct($sMessage, $iCode, $oPrevious);
IssueLog::Exception(get_class($this).' occurs: '.$sMessage, $this, null, $aContext);
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
/*
* @copyright Copyright (C) 2010-2025 Combodo SAS
* @license http://opensource.org/licenses/AGPL-3.0
@@ -36,7 +37,7 @@ class DIService
*/
final public function RegisterService(string $sName, mixed $oService): void
{
$aServices[$sName] = $oService;
$this->aServices[$sName] = $oService;
}
/**
@@ -57,4 +58,4 @@ class DIService
return $this->aServices[$sName];
}
}
}

View File

@@ -68,11 +68,10 @@ class AttributeChoiceFormBlock extends ChoiceFormBlock
$aAttributes = [];
foreach ($aAttributeCodes as $sAttCode) {
$oAttribute =$oModelReflection->GetLabel($sClass, $sAttCode);
$aAttributes[$oAttribute->GetLabel()] = $sAttCode;
$sLabel = $oModelReflection->GetLabel($sClass, $sAttCode);
$aAttributes[$sLabel] = $sAttCode;
}
$oOptionsRegister->SetOption('choices', $aAttributes);
}
}

View File

@@ -1,4 +1,5 @@
<?php
/*
* @copyright Copyright (C) 2010-2025 Combodo SAS
* @license http://opensource.org/licenses/AGPL-3.0
@@ -13,4 +14,4 @@ abstract class AbstractIOFormat implements JsonSerializable
abstract public function jsonSerialize(): mixed;
abstract public static function IsCompatible(string $sOtherFormatClass): bool;
}
}

View File

@@ -2,7 +2,6 @@
namespace Combodo\iTop\Forms\IO\Format;
class AttributeIOFormat extends AbstractIOFormat
{
public string $sAttributeName;