| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2.0438 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 28 | 3 | public function emit(ResponseInterface $response, $maxBufferLevel = null) |
|
| 29 | { |
||
| 30 | 3 | if (!headers_sent()) { |
|
| 31 | 1 | $this->emitStatusLine($response); |
|
| 32 | 1 | $this->emitHeaders($response); |
|
| 33 | } |
||
| 34 | 3 | $this->flush($maxBufferLevel); |
|
| 35 | 3 | $this->emitBody($response); |
|
| 36 | 3 | } |
|
| 37 | |||
| 47 | } |
Overwriting private methods is generally fine as long as you also use private visibility. It might still be preferable for understandability to use a different method name.