Skip to content

Commit 012658b

Browse files
authored
Add method chaining style specification (#15)
1 parent b5cac84 commit 012658b

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
@@ -649,6 +649,16 @@ $app->get('/hello/{name}', function ($name) use ($app) {
649649
});
650650
```
651651

652+
Method chaining SHOULD be put on separate lines, where each subsequent line is indented once. When doing so, the first
653+
method MUST be on the next line.
654+
655+
```php
656+
$someInstance
657+
->create()
658+
->prepare()
659+
->run();
660+
```
661+
652662
## 5. Control Structures
653663

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

0 commit comments

Comments
 (0)