Changeset View
Changeset View
Standalone View
Standalone View
core/units/forms/form_fields/form_fields_tp.php
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
function PrepareListElementParams(&$object, &$block_params) | function PrepareListElementParams(&$object, &$block_params) | ||||
{ | { | ||||
if (!array_key_exists('SourcePrefix', $block_params)) { | if (!array_key_exists('SourcePrefix', $block_params)) { | ||||
// don't have source prefix in administrative console | // don't have source prefix in administrative console | ||||
$object->SetDBField('DirectOptions', false); | $object->SetDBField('DirectOptions', false); | ||||
return ; | return ; | ||||
} | } | ||||
/** @var kDBItem $submission */ | |||||
$submission = $this->Application->recallObject( $block_params['SourcePrefix'] ); | $submission = $this->Application->recallObject( $block_params['SourcePrefix'] ); | ||||
Lint: CodingStandard.Functions.FunctionCallSignature.SpaceAfterOpenBracket: Space after opening parenthesis of function call prohibited | |||||
Expected 0 spaces before closing bracket; 1 found Lint: CodingStandard.Functions.FunctionCallSignature.SpaceBeforeCloseBracket: Expected 0 spaces before closing bracket; 1 found | |||||
Space after opening parenthesis of function call prohibited Lint: PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket: Space after opening parenthesis of function call prohibited | |||||
Expected 0 spaces before closing bracket; 1 found Lint: PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket: Expected 0 spaces before closing bracket; 1 found | |||||
/* @var $submission kDBItem */ | |||||
$options = $submission->GetFieldOptions('fld_' . $object->GetID()); | $options = $submission->GetFieldOptions('fld_' . $object->GetID()); | ||||
$object->SetDBField('DirectOptions', array_key_exists('options', $options) ? $options['options'] : false); | $object->SetDBField('DirectOptions', array_key_exists('options', $options) ? $options['options'] : false); | ||||
} | } | ||||
} | } | ||||
No newline at end of file | No newline at end of file |
Space after opening parenthesis of function call prohibited