mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°8796 - Add PHP code style validation in iTop and extensions - format whole code base
This commit is contained in:
@@ -38,9 +38,9 @@ use MetaModel;
|
||||
class SelectObjectField extends AbstractSimpleField
|
||||
{
|
||||
/** @var int CONTROL_SELECT */
|
||||
const CONTROL_SELECT = 1;
|
||||
public const CONTROL_SELECT = 1;
|
||||
/** @var int CONTROL_RADIO_VERTICAL */
|
||||
const CONTROL_RADIO_VERTICAL = 2;
|
||||
public const CONTROL_RADIO_VERTICAL = 2;
|
||||
|
||||
/** @var \DBSearch $oSearch */
|
||||
protected $oSearch;
|
||||
@@ -176,7 +176,8 @@ class SelectObjectField extends AbstractSimpleField
|
||||
/**
|
||||
* @return \DBSearch
|
||||
*/
|
||||
public function GetSearch() {
|
||||
public function GetSearch()
|
||||
{
|
||||
return $this->oSearch;
|
||||
}
|
||||
|
||||
@@ -217,14 +218,16 @@ class SelectObjectField extends AbstractSimpleField
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function GetControlType() {
|
||||
public function GetControlType()
|
||||
{
|
||||
return $this->iControlType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function GetSearchEndpoint() {
|
||||
public function GetSearchEndpoint()
|
||||
{
|
||||
return $this->sSearchEndpoint;
|
||||
}
|
||||
|
||||
@@ -241,7 +244,8 @@ class SelectObjectField extends AbstractSimpleField
|
||||
*
|
||||
* @since 3.1.0 N°6414 replaces VerifyCurrentValue$
|
||||
*/
|
||||
public function ResetCurrentValueIfNotAmongAllowedValues(bool $bAlways = false) {
|
||||
public function ResetCurrentValueIfNotAmongAllowedValues(bool $bAlways = false)
|
||||
{
|
||||
if (!$this->GetReadOnly() || $bAlways) {
|
||||
$oValuesSet = FieldHelper::GetObjectsSetFromSearchAndCurrentValueId($this->oSearch, $this->currentValue);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user