| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 18 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 53 | public function end(callable $callback = null, ?float $beta = null): void  | 
            ||
| 54 |     { | 
            ||
| 55 |         if (null === $this->cache) { | 
            ||
| 56 |             throw new InvalidArgumentException('Output cache has already been saved.'); | 
            ||
| 57 | }  | 
            ||
| 58 | $this->cache->save(  | 
            ||
| 59 | $this->key,  | 
            ||
| 60 |             function (CacheItemInterface $item, bool $save) use ($callback) { | 
            ||
| 61 |                 if (null !== $callback) { | 
            ||
| 62 | $callback(...[&$item, &$save]);  | 
            ||
| 63 | }  | 
            ||
| 64 | |||
| 65 | return \ob_get_flush();  | 
            ||
| 66 | },  | 
            ||
| 67 | $beta  | 
            ||
| 68 | );  | 
            ||
| 69 | |||
| 70 | $this->cache = null;  | 
            ||
| 71 | }  | 
            ||
| 73 |