Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function __construct(StreamInterface $stream, $level = -1) |
||
19 | 6 | { |
|
20 | if (!extension_loaded('zlib')) { |
||
21 | 6 | throw new \RuntimeException('The zlib extension must be enabled to use this stream'); |
|
22 | 1 | } |
|
23 | |||
24 | parent::__construct($stream, ['window' => 15, 'level' => $level]); |
||
25 | 5 | ||
26 | // @deprecated will be removed in 2.0 |
||
27 | $this->writeFilterCallback = Filter\fun($this->writeFilter(), ['window' => 15]); |
||
28 | 5 | } |
|
46 |