akalongman / sublimetext-codeformatter

Code Formatter plugin for ST2/ST3
MIT License
772 stars 130 forks source link

PHP formatter thinks method is for loop #397

Open mskenderian-wps opened 5 years ago

mskenderian-wps commented 5 years ago

there is a bug, the package things this method is a for loop and its adds { }, if i change the method name to something else forTest(). the { } doesnt get added.

before

$results = QueryBuilder::for(TankReport::class)->allowedFilters(Filter::exact('model_id'));

after

$results = QueryBuilder::for (TankReport::class) {
        ->allowedFilters(Filter::exact('model_id'));
}