Lots of code style fixes based on the Drupal standards and using code-style.pl.

Changes include comments changed to phpdoc standard, lots of spacing and indention fixes, removal of some dead code, conversion of double quotes to single quotes when not necessary and the reverse when it made code easier to read.

Comments

beginner’s picture

Status: Needs review » Fixed

Committed, thanks.

Sorry for the delay: I am having serious internet connectivity problems this week.

neclimdul’s picture

Status: Fixed » Reviewed & tested by the community
StatusFileSize
new7.26 KB

No Worries about the delay. And a big woops from me. I forgot about the .install and phpbb_redirect.module. Attached is a patch that does code style updates to these as well.

Also, apparently we where not making the temp tables utf8. This would mean that old installs will not have utf8 tables. Converting them to utf8 probably doesn't matter as the content won't be updated but I've included an update anyways.

beginner’s picture

in .install, are you sure about the postgresql changes?
You seem to be changing more than is necessary, and maybe even too much.
pgsql has recently been patched by a postgre user, so I wouldn't want to destroy his work...

sammys’s picture

Hi all,

I've looked over the postgresql changes made by @neclimdul and they fit with Drupal style guidelines. They are also correct. RTBC as far as postgresql changes go. Thanks @neclimdul (and whoever patched it for postgresql)!

Side note for @neclimdul: most core/EC CREATE TABLE code has NOT NULL before DEFAULT clauses. It doesn't matter, but figured it was worth a mention.

Cheers,

--
Sammy Spets
Synerger
http://synerger.com
Drupal core maintainer (PostgreSQL support) and E-commerce maintainer

beginner’s picture

Status: Reviewed & tested by the community » Fixed

Thanks Sammy for the review.
Patch committed. Thanks :)

neclimdul’s picture

Great, thanks for the pointers Sammy and thanks for making sure I got it all right.

Anonymous’s picture

Status: Fixed » Closed (fixed)