Follow PSR-2 Guidelines
I'm not liking this style:
Code MUST use 4 spaces for indenting, not tabs.
Nope, 2 spaces is much nicer to read
Opening braces for classes MUST go on the next line, and closing braces MUST go on the next line after the body.
Opening braces for methods MUST go on the next line, and closing braces MUST go on the next line after the body.
Not liking this as well, I prefer
function abc {
...
}
Just me 2 cents ;)
I think the argumentation of personal dislike the visual style is not purposeful. My motivation came from integrating the lib in the Symfony Framework or some Web Application. All the main testing and linting tools following the PSR Guidlines. So I must not configure special code styles.
I do plan on switching to 4 spaces. I haven't looked at the rest of PSR-2 yet though.
+1
I agree with project following PSR-2.
I would make a merge request for that, but not until your refactorings and api breaks are finished.
Do you having linting tools that you like?
I took an initial pass as improving compatibility in TwitterOAuth.php
For the initial reformat of the code I would suggest PHP CS Fixer. When you use an IDE like PHPStorm you can simply configure your project to follow PSR-2 and reformat the code.
+1
OAuth.php has now been split by classes. other than some needed camelCase updates the codebase should be pretty PSR-2 compliant now.
I'm considering PSR-2 compatibility done. Please open pull requests/issues for anything that was missed.