phpfmt_stable
phpfmt_stable copied to clipboard
Yoda style disable
Sry for bad english.
I need to discard of Yoda-style
Before:
if (true === $mode) {}
After:
if ($mode === true) {}
On Sublime? Or on command line?
@skys215 I use sublime text.
The Yoda style is disabled by default. If enabled then it probably means that the user settings configuration of this package has it activated.
To disable this pass you must remove the "YogaComparisons" that should be referenced into the additional "passes" :
"passes":
[
"YodaComparisons"
],
If this does not work then you can add it to the "excludes" list :
"excludes":
[
"YodaComparisons"
],