mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-01 07:04:16 +01:00
🎨 N°8772 - CS Fixer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Combodo\iTop\Forms\IO\Format;
|
||||
|
||||
|
||||
class AttributeIOFormat extends AbstractIOFormat
|
||||
{
|
||||
public string $sAttributeName;
|
||||
|
||||
Reference in New Issue
Block a user