Issues (2354)

src/Transport/StreamRead.php (7 issues)

1
<?php
0 ignored issues
show
Missing declare(strict_types=1).
Loading history...
2
3
namespace ClickHouseDB\Transport;
4
5
/**
6
 * Class StreamRead
0 ignored issues
show
Documentation comment contains forbidden comment "Class StreamRead".
Loading history...
7
 * @package ClickHouseDB\Transport
0 ignored issues
show
Expected 1 lines between description and annotations, found 0.
Loading history...
Use of annotation @package is forbidden.
Loading history...
8
 */
9
class StreamRead extends Stream
10
{
11 1
    public function isWrite()
0 ignored issues
show
Method \ClickHouseDB\Transport\StreamRead::isWrite() does not have return type hint nor @return annotation for its return value.
Loading history...
12
    {
13 1
        return false;
14
    }
0 ignored issues
show
Expected 1 blank line after function; 0 found
Loading history...
15
    public function applyGzip()
0 ignored issues
show
Method \ClickHouseDB\Transport\StreamRead::applyGzip() does not have void return type hint.
Loading history...
16
    {
17
//        stream_filter_append($this->source, 'zlib.deflate', STREAM_FILTER_READ, ['window' => 30]);
18
        $this->enableGzipHeader();
19
    }
20
}
21