Closed introwit closed 2 years ago
Your JSON file is invalid. Try this:
{
"rules": {
"concat_space": {
"spacing": "one"
},
"method_chaining_indentation": true
}
}
That worked. Thank you :heart:
Description:
method_chaining_indentation
rule is not working when setup via thepint.json
config file. It works when using this in the.php-cs-fixer.php
file and running the cs fixer directly.Steps To Reproduce:
I have created a fresh installation of Laravel and pushed the repo to GitHub.
It has both the pint.json file and the .php-cs-fixer.php file as well.
I have added few lines in the Controller here to test this rule. If you have php-cs-fixer setup locally and run it, this is how the before and after looks like. It fixes as expected.