mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
🎨 N°8772 - CS Fixer
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @copyright Copyright (C) 2010-2025 Combodo SAS
|
* @copyright Copyright (C) 2010-2025 Combodo SAS
|
||||||
* @license http://opensource.org/licenses/AGPL-3.0
|
* @license http://opensource.org/licenses/AGPL-3.0
|
||||||
@@ -16,4 +17,4 @@ class DIException extends \Exception
|
|||||||
parent::__construct($sMessage, $iCode, $oPrevious);
|
parent::__construct($sMessage, $iCode, $oPrevious);
|
||||||
IssueLog::Exception(get_class($this).' occurs: '.$sMessage, $this, null, $aContext);
|
IssueLog::Exception(get_class($this).' occurs: '.$sMessage, $this, null, $aContext);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @copyright Copyright (C) 2010-2025 Combodo SAS
|
* @copyright Copyright (C) 2010-2025 Combodo SAS
|
||||||
* @license http://opensource.org/licenses/AGPL-3.0
|
* @license http://opensource.org/licenses/AGPL-3.0
|
||||||
@@ -36,7 +37,7 @@ class DIService
|
|||||||
*/
|
*/
|
||||||
final public function RegisterService(string $sName, mixed $oService): void
|
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];
|
return $this->aServices[$sName];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,11 +68,10 @@ class AttributeChoiceFormBlock extends ChoiceFormBlock
|
|||||||
|
|
||||||
$aAttributes = [];
|
$aAttributes = [];
|
||||||
foreach ($aAttributeCodes as $sAttCode) {
|
foreach ($aAttributeCodes as $sAttCode) {
|
||||||
$oAttribute =$oModelReflection->GetLabel($sClass, $sAttCode);
|
$sLabel = $oModelReflection->GetLabel($sClass, $sAttCode);
|
||||||
$aAttributes[$oAttribute->GetLabel()] = $sAttCode;
|
$aAttributes[$sLabel] = $sAttCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
$oOptionsRegister->SetOption('choices', $aAttributes);
|
$oOptionsRegister->SetOption('choices', $aAttributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @copyright Copyright (C) 2010-2025 Combodo SAS
|
* @copyright Copyright (C) 2010-2025 Combodo SAS
|
||||||
* @license http://opensource.org/licenses/AGPL-3.0
|
* @license http://opensource.org/licenses/AGPL-3.0
|
||||||
@@ -13,4 +14,4 @@ abstract class AbstractIOFormat implements JsonSerializable
|
|||||||
abstract public function jsonSerialize(): mixed;
|
abstract public function jsonSerialize(): mixed;
|
||||||
|
|
||||||
abstract public static function IsCompatible(string $sOtherFormatClass): bool;
|
abstract public static function IsCompatible(string $sOtherFormatClass): bool;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace Combodo\iTop\Forms\IO\Format;
|
namespace Combodo\iTop\Forms\IO\Format;
|
||||||
|
|
||||||
|
|
||||||
class AttributeIOFormat extends AbstractIOFormat
|
class AttributeIOFormat extends AbstractIOFormat
|
||||||
{
|
{
|
||||||
public string $sAttributeName;
|
public string $sAttributeName;
|
||||||
|
|||||||
Reference in New Issue
Block a user