Skip to content

Commit d210290

Browse files
authored
Merge pull request #16 from vjik/chain-calls
Add method chaining style specification
2 parents 546f82c + 8d68bb4 commit d210290

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spec.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,16 @@ $app->get('/hello/{name}', function ($name) use ($app) {
714714
});
715715
```
716716

717+
Method chaining MAY be put on separate lines, where each subsequent line is indented once. When doing so, the first
718+
method MUST be on the next line.
719+
720+
```php
721+
$someInstance
722+
->create()
723+
->prepare()
724+
->run();
725+
```
726+
717727
## 5. Control Structures
718728

719729
The general style rules for control structures are as follows:

0 commit comments

Comments
 (0)