File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
modules/redcap/php/client/models Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff 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' " ;
You can’t perform that action at this time.
0 commit comments