-
Notifications
You must be signed in to change notification settings - Fork 8
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
Mixed tabs and spaces #10
Comments
Ahh you're right. I'll push a fix that only uses tabs soon. |
Jeffrey, Would you consider using 4 spaces instead per PSR standards? https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md |
j20, although you're right about the PSR standards, I'm really voting for tabs as this leaves the user to set their indentation width. There's been a lot of debate on this in the PSR group as well. Anyway, Jeffrey get's to do wathever the hell he wants ;-) |
I think I may stick with a tab, and then, in your editor, you can always have this map to four spaces. |
Cool. Either is fine with me. Hopefully the debate in the community will get settled some day. I see benefits to both sides. Just as long as it's not two spaces ;) |
@laurentvd "Leaves the user to set their indentation" while that's true, it doesn't mean the code will remain aligned in all cases. There's a good analysis of this http://paul-m-jones.com/archives/2312 one place this breaks down is if you change the tab width from 4 to 8, things that should be vertically aligned, are no longer. Clearly Laravel's decided to use tabs, but I wanted to point this out. |
@dustingraham Yeah, agreed. I understand why spaces are the better option. But since Laravel is using tabs (and personally, I prefer tabs) it would make more sense for this package to use tabs. Anyway, it's always 'fun' to troll on the spaces vs. tabs topic ;-) |
I really wished Laravel Version 4 had switched to spaces. They pretty much switched to PSR recommendations except decide to keep tabs. No wonder this is the holy war. |
Sorry but I'd rather not... ;) |
+1 for spaces. |
@18601673727 Not again... |
If you like spaces, or any variation of tabs, why not set up and modify the templates directly? (Others shouldn't be expected to adhere to my programming quirks, right?)
I have found it tremendously helpful. |
When I create a new migration using
A class is nicely generated, but it mixes tabs and spaces. I use tabs as a default and therefore I noticed it.
Of course it's really minor, but it still bugs me because Laravel is such a consistently clean-coded framework.
The text was updated successfully, but these errors were encountered: