| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 43 | 3 | public function end(): AbstractViewHelper |
|
| 44 | { |
||
| 45 | 3 | if (empty($this->activeContentKey)) { |
|
| 46 | 1 | throw new \LogicException('Specify view helper Capturer\'s content key for ending capture'); |
|
| 47 | } |
||
| 48 | |||
| 49 | // Get the captured contents and end this output buffer |
||
| 50 | 2 | $this->capturedContent[$this->activeContentKey] = \ob_get_clean(); |
|
| 51 | |||
| 52 | 2 | return $this; |
|
| 53 | } |
||
| 54 | |||
| 68 |