Code Duplication    Length = 3-3 lines in 2 locations

src/LZX/Tree.php 2 locations

@@ 151-153 (lines=3) @@
148
     */
149
    public function readAlignLengthTable(BitReader $reader)
150
    {
151
        for ($i = 0; $i < $this->maxSymbol; ++$i) {
152
            $this->lens[$i] = $reader->readLE(3);
153
        }
154
    }
155
156
    /**
@@ 167-169 (lines=3) @@
164
    public function readLengthTable(BitReader $reader, $first, $last)
165
    {
166
        $preTree = new self(6, static::PRETREE_NUM_ELEMENTS);
167
        for ($i = 0; $i < $preTree->maxSymbol; ++$i) {
168
            $preTree->lens[$i] = $reader->readLE(4);
169
        }
170
        $preTree->makeSymbolTable();
171
        for ($pos = $first; $pos < $last;) {
172
            $symbol = $preTree->readHuffmanSymbol($reader);