Closed miken32 closed 12 years ago
I agree with all your comments on this, it's certainly time to clean up the code and follow a good standards.
I would recommend we try to follow Symfony code standard : http://symfony.com/doc/current/contributing/code/standards.html which follows the standards defined in the PSR-0, PSR-1 and PSR-2 documents.
Following up from my forum post here are some proposed changes to clean up some of the code. Looking at the code, it seems like it started out following PEAR standards pretty closely, so that's what I used as a guide. This is what I would call a first step, the changes are entirely to whitespace:
To reiterate, these are all changes to whitespace only. Running "diff -w" between this branch and the master branch should show no changes.
The next step would be changes to the actual code:
if
statementsThis is a work in progress, I'd love to get feedback, and to know that I haven't wasted a few hours! I think that any successful project should have extensive coding standards in place, and enforce them. Other open source projects, for example, will not accept patches that don't conform to project standards. I believe this is especially important for line indentation; some lines I fixed here had a mix of tabs, 4 space, and 8 space indentation on the same line! This results in a totally inconsistent experience for code contributors.