danmarsden/moodle-plagiarism_turnitin — pull request #21 by mattgibson (2011-12-14 15:18:22+00:00)
Title: All files now conform to codechecker plugin rules

Hi Dan

I'm in the process of getting all our internal stuff to conform to the Moodle coding guidelines, using the OU codechecker plugin, so I thought I'd run through the Turnitin plugin too. Hope you don't mind :)

Most of the changes are to get lines within the 100 character length limit, sometimes by refactoring to introduce local variables. I've fixed a couple of places where variables were redundant as well as shunted things around in a couple of other places to avoid issues that the IDE threw up e.g. inconsistent return points and deprecated functions.

Clearly there's the potential for bugs to creep in given the scope of changes, but most of it was automatic refactoring by the IDE and it seems to be running OK.