-
Notifications
You must be signed in to change notification settings - Fork 1
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
Rule proposal for "cast" #24
Comments
👍 from me |
#24 Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
I usually omit the extra space because the cast and variable belongs together, however the diff output is much nicer and the cast easier to spot with a space between 👍 400 files changed in server.
0 files changed in server 🙌
2 files changed in server.
1 file changed in server. Pull Request: #25 |
Is it much better if we opt for |
180 for none |
I'm fine both ways |
I'd like to propose:
cast_spaces: ['single']
https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/930dc93a1b90eb991d13e2766a340aa6922d4a2c/doc/rules/cast_notation/cast_spaces.rstlowercase_cast
https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/930dc93a1b90eb991d13e2766a340aa6922d4a2c/doc/rules/cast_notation/lowercase_cast.rstno_short_bool_cast
https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/930dc93a1b90eb991d13e2766a340aa6922d4a2c/doc/rules/cast_notation/no_short_bool_cast.rstshort_scalar_cast
https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/930dc93a1b90eb991d13e2766a340aa6922d4a2c/doc/rules/cast_notation/short_scalar_cast.rstThe text was updated successfully, but these errors were encountered: