Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 5596-5605 (lines=10) @@
5593
                    if (!$docblock_start_found || !$name_found || !$description_found || empty($param)) {
5594
                        continue;
5595
                    }
5596
                    if (!empty($param)) {
5597
                        if (in_array($param, $arrayParams)) {
5598
                            if (!isset($params[$param])) {
5599
                                $params[$param] = array();
5600
                            }
5601
                            $params[$param][] = $escapeValues ? $this->db->escape($val) : $val;
5602
                        } else {
5603
                            $params[$param] = $escapeValues ? $this->db->escape($val) : $val;
5604
                        }
5605
                    }
5606
                }
5607
                @fclose($tpl);
5608
            }
@@ 5646-5655 (lines=10) @@
5643
                if ($docblock_end_found) {
5644
                    break;
5645
                }
5646
                if (!empty($param)) {
5647
                    if (in_array($param, $arrayParams)) {
5648
                        if (!isset($params[$param])) {
5649
                            $params[$param] = array();
5650
                        }
5651
                        $params[$param][] = $escapeValues ? $this->db->escape($val) : $val;
5652
                    } else {
5653
                        $params[$param] = $escapeValues ? $this->db->escape($val) : $val;
5654
                    }
5655
                }
5656
            }
5657
        }
5658
        return $params;