Code Duplication    Length = 5-5 lines in 2 locations

src/FrameReflower/AbstractFrameReflower.php 2 locations

@@ 405-409 (lines=5) @@
402
                $counter_id = $args[3];
403
                if (strtolower($args[1]) == 'counter') {
404
                    // counter(name [,style])
405
                    if (isset($args[5])) {
406
                        $type = trim($args[5]);
407
                    } else {
408
                        $type = null;
409
                    }
410
                    $p = $this->_frame->lookup_counter_frame($counter_id);
411
412
                    $text .= $p->counter_value($counter_id, $type);
@@ 422-426 (lines=5) @@
419
                        $string = "";
420
                    }
421
422
                    if (isset($args[7])) {
423
                        $type = trim($args[7]);
424
                    } else {
425
                        $type = null;
426
                    }
427
428
                    $p = $this->_frame->lookup_counter_frame($counter_id);
429
                    $tmp = array();