Code Duplication    Length = 7-7 lines in 3 locations

PhpAmqpLib/Wire/AMQPReader.php 3 locations

@@ 187-193 (lines=7) @@
184
    /**
185
     * @return mixed
186
     */
187
    public function read_octet()
188
    {
189
        $this->bitcount = $this->bits = 0;
190
        list(, $res) = unpack('C', $this->rawread(1));
191
192
        return $res;
193
    }
194
195
    /**
196
     * @return mixed
@@ 198-204 (lines=7) @@
195
    /**
196
     * @return mixed
197
     */
198
    public function read_signed_octet()
199
    {
200
        $this->bitcount = $this->bits = 0;
201
        list(, $res) = unpack('c', $this->rawread(1));
202
203
        return $res;
204
    }
205
206
    /**
207
     * @return mixed
@@ 330-336 (lines=7) @@
327
     * Read a utf-8 encoded string that's stored in up to
328
     * 255 bytes.  Return it decoded as a PHP unicode object.
329
     */
330
    public function read_shortstr()
331
    {
332
        $this->bitcount = $this->bits = 0;
333
        list(, $slen) = unpack('C', $this->rawread(1));
334
335
        return $this->rawread($slen);
336
    }
337
338
    /**
339
     * Read a string that's up to 2**32 bytes, the encoding