Some of the style issues I've noticed in going over the code:

- indentation (too much in content_retriever_admin_types_form for example)
- spacing around string concatenation: the . operator takes a space either side
- coddled elses: an else comes on a new line, and it doesn't indent any further than the if.
- missing spaces after function arguments

Comments

joachim’s picture

Result of

perl -pi -e 's[(foreach|if|while)\(][$1 (];' `grep -ril '<?php' *`
perl -pi -e 's[\){][) {];' `grep -ril '<?php' *`

Looks sane; committing.

More to do, so keeping this issue active.

joachim’s picture

patch 2: coddled elses, elseif not else if, and some indentation in nearby areas.

Also looks sane; committing :D

joachim’s picture

Either I missed some or I didn't apply that patch correctly.

Anyway: more coddled elses. Committed this patch.