Skip to content

Commit ec53c55

Browse files
committed
made static error corrections
1 parent a0a7a71 commit ec53c55

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

modules/redcap/php/client/models/redcapdictionaryrecord.class.inc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,21 +318,25 @@ class RedcapDictionaryRecord
318318
$index = 1; //Auto-index counter
319319
foreach ($choices as $choice) {
320320
$choice = trim($choice);
321-
if (empty($choice)) continue;
321+
if (empty($choice)) {
322+
continue;
323+
}
322324

323325
$matches = [];
324-
326+
325327
if (preg_match($pattern, $choice, $matches) !== 1) {
326328
// Missing code -auto-generate one
327-
error_log("Warning: Auto-indexing malformed option:
328-
'$choice' as index $index");
329+
error_log(
330+
"Warning: Auto-indexing malformed option:
331+
'$choice' as index $index"
332+
);
329333
$backend = $index;
330334
$label - $choice;
331335
$index++;
332336
} else {
333337
//Normal parsing
334338
$backend = $matches[2];
335-
$label = trim($matches[4]);
339+
$label = trim($matches[4]);
336340
}
337341

338342
$linstFormat = "'$backend'=>'$label'";

0 commit comments

Comments
 (0)