Code Duplication    Length = 9-9 lines in 3 locations

class/Form/SmartObjectForm.php 3 locations

@@ 212-220 (lines=9) @@
209
                            unset($form_text);
210
                            break;
211
212
                        case XOBJ_DTYPE_INT:
213
                            $this->targetObject->setControl($key, [
214
                                'name' => 'text',
215
                                'size' => '5'
216
                            ]);
217
                            $form_text = $this->getControl('text', $key);
218
                            $this->addElement($form_text, $key, $var);
219
                            unset($form_text);
220
                            break;
221
222
                        case XOBJ_DTYPE_FLOAT:
223
                            $this->targetObject->setControl($key, [
@@ 222-230 (lines=9) @@
219
                            unset($form_text);
220
                            break;
221
222
                        case XOBJ_DTYPE_FLOAT:
223
                            $this->targetObject->setControl($key, [
224
                                'name' => 'text',
225
                                'size' => '5'
226
                            ]);
227
                            $form_text = $this->getControl('text', $key);
228
                            $this->addElement($form_text, $key, $var);
229
                            unset($form_text);
230
                            break;
231
232
                        case XOBJ_DTYPE_LTIME:
233
                            $form_date_time = $this->getControl('date_time', $key);
@@ 250-258 (lines=9) @@
247
                            unset($form_time);
248
                            break;
249
250
                        case XOBJ_DTYPE_CURRENCY:
251
                            $this->targetObject->setControl($key, [
252
                                'name' => 'text',
253
                                'size' => '15'
254
                            ]);
255
                            $form_currency = $this->getControl('text', $key);
256
                            $this->addElement($form_currency, $key, $var);
257
                            unset($form_currency);
258
                            break;
259
260
                        case XOBJ_DTYPE_URLLINK:
261
                            $form_urllink = $this->getControl('urllink', $key);