Code Duplication    Length = 6-6 lines in 2 locations

typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateObjectBrowserModuleFunctionController.php 2 locations

@@ 187-192 (lines=6) @@
184
                        if (preg_replace('/[^a-zA-Z0-9_\\.]*/', '', $property) != $property) {
185
                            $badPropertyMessage = GeneralUtility::makeInstance(FlashMessage::class, $lang->getLL('noSpaces') . $lang->getLL('nothingUpdated'), $lang->getLL('badProperty'), FlashMessage::ERROR);
186
                            $this->addFlashMessage($badPropertyMessage);
187
                        } else {
188
                            $pline = $name . '.' . $property . ' = ' . trim($POST['data'][$name]['propertyValue']);
189
                            $propertyAddedMessage = GeneralUtility::makeInstance(FlashMessage::class, $pline, $lang->getLL('propertyAdded'));
190
                            $this->addFlashMessage($propertyAddedMessage);
191
                            $line .= LF . $pline;
192
                        }
193
                    } elseif ($POST['update_value']) {
194
                        $pline = $name . ' = ' . trim($POST['data'][$name]['value']);
195
                        $updatedMessage = GeneralUtility::makeInstance(FlashMessage::class, $pline, $lang->getLL('valueUpdated'));
@@ 193-198 (lines=6) @@
190
                            $this->addFlashMessage($propertyAddedMessage);
191
                            $line .= LF . $pline;
192
                        }
193
                    } elseif ($POST['update_value']) {
194
                        $pline = $name . ' = ' . trim($POST['data'][$name]['value']);
195
                        $updatedMessage = GeneralUtility::makeInstance(FlashMessage::class, $pline, $lang->getLL('valueUpdated'));
196
                        $this->addFlashMessage($updatedMessage);
197
                        $line .= LF . $pline;
198
                    } elseif ($POST['clear_object']) {
199
                        if ($POST['data'][$name]['clearValue']) {
200
                            $pline = $name . ' >';
201
                            $objectClearedMessage = GeneralUtility::makeInstance(FlashMessage::class, $pline, $lang->getLL('objectCleared'));