phpfmt_stable icon indicating copy to clipboard operation
phpfmt_stable copied to clipboard

Yoda style disable

Open higimo opened this issue 8 years ago • 3 comments

Sry for bad english.

I need to discard of Yoda-style

Before: if (true === $mode) {}

After: if ($mode === true) {}

higimo avatar Mar 17 '17 12:03 higimo

On Sublime? Or on command line?

skys215 avatar Jun 21 '17 08:06 skys215

@skys215 I use sublime text.

higimo avatar Jun 21 '17 10:06 higimo

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"
],

MKCG avatar Dec 07 '17 00:12 MKCG