-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A Little Housekeeping #751
Conversation
@@ -100,7 +96,7 @@ public function getScript() | |||
return $this->_data; | |||
} | |||
|
|||
return null; | |||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this is done automatically by the cleanup script. I'm not a fan of "empty" return, but if we have an automated way to cleanup things, I can also "life" with this version.
@XWB I like almost all changes except the return null; and ' . ' without space. It also changes some of the standards we used before but I prefer to have an automatic script that fixes the coding issues and it aligned with a standard. We should include this in our build file if possible. |
Correct, though we can tweak the script a bit. The following options are available:
According to http://cs.sensiolabs.org/, the level
The Symfony fixer is not be required for |
@ruflin I didn't expect you to merge this PR so quickly :P If you want, you could revert the commit (or remove it and force update the master branch) and I can send a new PR without the Symfony code standard (see comment above). |
As the Symfony bundle is one of the biggest Elastica users, I don't think we need to revert anything. I prefer to have a reliable checker for the styles. What happens if you now apply only the first three? Would that lead to any changes? |
This bundle can use a little cleanup. I used https://github.com/FriendsOfPHP/PHP-CS-Fixer to resolve most issues.