akalongman / akalongman/sublimetext-codeformatter

PHP formatter thinks method is for loop

Open
#397 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
772
Forks
128
PR merge metrics
No merged PRs in 30d

Description

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'));
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.