Code Duplication    Length = 7-7 lines in 2 locations

src/controllers/FunctionsController.php 2 locations

@@ 263-269 (lines=7) @@
260
261
        $fnlang = strtolower($_POST['original_lang']);
262
263
        if ($fnlang == 'c') {
264
            $def = [$_POST['formObjectFile'], $_POST['formLinkSymbol']];
265
        } elseif ($fnlang == 'internal') {
266
            $def = $_POST['formLinkSymbol'];
267
        } else {
268
            $def = $_POST['formDefinition'];
269
        }
270
        if (!$data->hasFunctionAlterSchema()) {
271
            $_POST['formFuncSchema'] = '';
272
        }
@@ 1074-1080 (lines=7) @@
1071
1072
        $fnlang = strtolower($_POST['formLanguage']);
1073
1074
        if ($fnlang == 'c') {
1075
            $def = [$_POST['formObjectFile'], $_POST['formLinkSymbol']];
1076
        } elseif ($fnlang == 'internal') {
1077
            $def = $_POST['formLinkSymbol'];
1078
        } else {
1079
            $def = $_POST['formDefinition'];
1080
        }
1081
1082
        $szJS = '';
1083