| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php namespace rtens\domin\delivery; |
||
| 34 | public function surroundWith($before, $after) { |
||
| 35 | $oldRunner = $this->runner; |
||
| 36 | $this->runner = function (DelayedOutput $output) use ($oldRunner, $before, $after) { |
||
| 37 | $this->write($before); |
||
| 38 | call_user_func($oldRunner, $output); |
||
| 39 | $this->write($after); |
||
| 40 | }; |
||
| 41 | } |
||
| 42 | |||
| 49 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.