File: editdistance1.php

package info (click to toggle)
phpcpd 7.0.0~git20230110-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 504 kB
  • sloc: php: 2,284; xml: 132; makefile: 21
file content (27 lines) | stat: -rw-r--r-- 982 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

// NB: Code-snippet copied from LimeSurvey import_helper.php

$iOldQID = (int) $insertdata['qid'];
unset($insertdata['qid']);
$insertdata['parent_qid'] = $aQIDReplacements[(int) $insertdata['parent_qid']];
if (!isset($insertdata['help'])) {
    $insertdata['help'] = '';
}
if (!isset($xml->question_l10ns->rows->row)) {
    // Edit difference here.
    if ($bTranslateLinksFields) {
        $insertdata['question'] = translateLinks('survey', $iOldSID, $iNewSID, $insertdata['question']);
        $insertdata['help'] = translateLinks('survey', $iOldSID, $iNewSID, $insertdata['help']);
    }
    $oQuestionL10n = new QuestionL10n();
    $oQuestionL10n->question = $insertdata['question'];
    $oQuestionL10n->help = $insertdata['help'];
    $oQuestionL10n->language = $insertdata['language'];
    unset($insertdata['question']);
    unset($insertdata['help']);
    unset($insertdata['language']);
}

// For some reason, two exact files will lead to one 0-line clone.
$a = 10;