wjunkin / moodle-quiz_liveviewgrid

Dynamic quiz spreadsheet
2 stars 2 forks source link

strange function liveviewshowkey() defined within a function display() #7

Closed danmarsden closed 5 years ago

danmarsden commented 5 years ago

I don't think I've ever seen this before: https://github.com/wjunkin/moodle-quiz_liveviewgrid/blob/master/liveviewgrid/report.php#L205

It's also not clear why it's even in a function as it is only called once right below.

If it should be in a function I'd recommend moving it into a standalone function in the class instead of embedded within the "display() function. otherwise remove the function completely and just call it in-line.

wjunkin commented 5 years ago

Thanks, Dan, for this good suggestion. I think I have made this change. (Now that I am through teaching the physicis course I hope to move forward with this pretty quickly.)