Code Duplication    Length = 10-10 lines in 2 locations

manager/includes/document.parser.class.inc.php 2 locations

@@ 5606-5615 (lines=10) @@
5603
                    if (!$docblock_start_found || !$name_found || !$description_found || empty($param)) {
5604
                        continue;
5605
                    }
5606
                    if (!empty($param)) {
5607
                        if (in_array($param, $arrayParams)) {
5608
                            if (!isset($params[$param])) {
5609
                                $params[$param] = array();
5610
                            }
5611
                            $params[$param][] = $escapeValues ? $this->db->escape($val) : $val;
5612
                        } else {
5613
                            $params[$param] = $escapeValues ? $this->db->escape($val) : $val;
5614
                        }
5615
                    }
5616
                }
5617
                @fclose($tpl);
5618
            }
@@ 5656-5665 (lines=10) @@
5653
                if ($docblock_end_found) {
5654
                    break;
5655
                }
5656
                if (!empty($param)) {
5657
                    if (in_array($param, $arrayParams)) {
5658
                        if (!isset($params[$param])) {
5659
                            $params[$param] = array();
5660
                        }
5661
                        $params[$param][] = $escapeValues ? $this->db->escape($val) : $val;
5662
                    } else {
5663
                        $params[$param] = $escapeValues ? $this->db->escape($val) : $val;
5664
                    }
5665
                }
5666
            }
5667
        }
5668
        return $params;