Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 5565-5574 (lines=10) @@
5562
                    if (!$docblock_start_found || !$name_found || !$description_found || empty($param)) {
5563
                        continue;
5564
                    }
5565
                    if (!empty($param)) {
5566
                        if (in_array($param, $arrayParams)) {
5567
                            if (!isset($params[$param])) {
5568
                                $params[$param] = array();
5569
                            }
5570
                            $params[$param][] = $escapeValues ? $this->db->escape($val) : $val;
5571
                        } else {
5572
                            $params[$param] = $escapeValues ? $this->db->escape($val) : $val;
5573
                        }
5574
                    }
5575
                }
5576
                @fclose($tpl);
5577
            }
@@ 5615-5624 (lines=10) @@
5612
                if ($docblock_end_found) {
5613
                    break;
5614
                }
5615
                if (!empty($param)) {
5616
                    if (in_array($param, $arrayParams)) {
5617
                        if (!isset($params[$param])) {
5618
                            $params[$param] = array();
5619
                        }
5620
                        $params[$param][] = $escapeValues ? $this->db->escape($val) : $val;
5621
                    } else {
5622
                        $params[$param] = $escapeValues ? $this->db->escape($val) : $val;
5623
                    }
5624
                }
5625
            }
5626
        }
5627
        return $params;