Code Duplication    Length = 7-7 lines in 2 locations

PhpAmqpLib/Helper/Protocol/Protocol080.php 1 location

@@ 259-265 (lines=7) @@
256
    /**
257
     * @return array
258
     */
259
    public function accessRequest($realm = '/data', $exclusive = false, $passive = true, $active = true, $write = true, $read = true)
260
    {
261
        $args = new AMQPWriter();
262
        $args->write_shortstr($realm);
263
        $args->write_bits(array($exclusive, $passive, $active, $write, $read));
264
        return array(30, 10, $args);
265
    }
266
267
268

PhpAmqpLib/Helper/Protocol/Protocol091.php 1 location

@@ 257-263 (lines=7) @@
254
    /**
255
     * @return array
256
     */
257
    public function accessRequest($realm = '/data', $exclusive = false, $passive = true, $active = true, $write = true, $read = true)
258
    {
259
        $args = new AMQPWriter();
260
        $args->write_shortstr($realm);
261
        $args->write_bits(array($exclusive, $passive, $active, $write, $read));
262
        return array(30, 10, $args);
263
    }
264
265
266