mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
🎨 PHP CS Fixer
This commit is contained in:
@@ -47,11 +47,9 @@ abstract class AbstractTypeFormBlock extends AbstractFormBlock
|
||||
$oInput = $this->GetInput(self::INPUT_VISIBLE);
|
||||
if (!$oInput->IsBound()) {
|
||||
return true;
|
||||
}
|
||||
else if (!$oInput->HasEventValue($sEventType)) {
|
||||
} elseif (!$oInput->HasEventValue($sEventType)) {
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
return $oInput->GetValue($sEventType)->IsTrue();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,11 +74,10 @@ class CollectionBlock extends AbstractTypeFormBlock
|
||||
$sBlockEntryOptions = $this->GetOption('block_entry_options');
|
||||
$this->oPrototypeBlock = new ($sBlockEntryType)('prototype', $sBlockEntryOptions);
|
||||
|
||||
try{
|
||||
try {
|
||||
$oOptionsRegister->SetOption('entry_type', $this->oPrototypeBlock->GetFormType());
|
||||
$oOptionsRegister->SetOption('entry_options', $this->oPrototypeBlock->GetOptions());
|
||||
}
|
||||
catch(RegisterException $e){
|
||||
} catch (RegisterException $e) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user