phpfmt_stable icon indicating copy to clipboard operation
phpfmt_stable copied to clipboard

Method visibility removed for only one method named new()

Open patrickcurl opened this issue 9 years ago • 1 comments

I can't really track down why this is happening... except that it only happens when I have phpfmt enabled on save.

I have this function: `public function new () { $this->hasPermissions('coupons', 'all'); $data['products'] = Product::findWithoutOptions(); $data['stores'] = $this->authUser()->getStorePermissions();

    return view('admin.coupons.new', $data);
}`

on save:

`function new () { $this->hasPermissions('coupons', 'all'); $data['products'] = Product::findWithoutOptions(); $data['stores'] = $this->authUser()->getStorePermissions();

    return view('admin.coupons.new', $data);

}`

if I rename the function, then it works, or if I rename it, and create a new function named new() it also removes the visibility. I've toggled all settings, and removed transformations, and still having the issue.

patrickcurl avatar Dec 29 '16 22:12 patrickcurl

I solved this problem there : https://github.com/MKCG/phpfmt_7-1

MKCG avatar Dec 06 '17 16:12 MKCG