kokororin / vscode-phpfmt

Integrates phpfmt into VS Code
https://marketplace.visualstudio.com/items?itemName=kokororin.vscode-phpfmt
BSD 3-Clause "New" or "Revised" License
129 stars 30 forks source link

Is there anyway to disable the addUnderscoresBeforeName behaviour? #72

Closed toggenation closed 5 years ago

toggenation commented 5 years ago

I noticed that my protected and private methods are having an underscore _ and __ double underscore respectively prepended to them.

Is the a way of turning this behaviour off?

I tried to edit fmt.phar and remove the call to

      $source = $this->addUnderscoresBeforeName($source); 

but it breaks the sha hash check

toggenation commented 5 years ago

Never mind just switch off CakePHPStyle and that drops the behaviour