Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 5586-5595 (lines=10) @@
5583
                    if (!$docblock_start_found || !$name_found || !$description_found || empty($param)) {
5584
                        continue;
5585
                    }
5586
                    if (!empty($param)) {
5587
                        if (in_array($param, $arrayParams)) {
5588
                            if (!isset($params[$param])) {
5589
                                $params[$param] = array();
5590
                            }
5591
                            $params[$param][] = $escapeValues ? $this->db->escape($val) : $val;
5592
                        } else {
5593
                            $params[$param] = $escapeValues ? $this->db->escape($val) : $val;
5594
                        }
5595
                    }
5596
                }
5597
                @fclose($tpl);
5598
            }
@@ 5636-5645 (lines=10) @@
5633
                if ($docblock_end_found) {
5634
                    break;
5635
                }
5636
                if (!empty($param)) {
5637
                    if (in_array($param, $arrayParams)) {
5638
                        if (!isset($params[$param])) {
5639
                            $params[$param] = array();
5640
                        }
5641
                        $params[$param][] = $escapeValues ? $this->db->escape($val) : $val;
5642
                    } else {
5643
                        $params[$param] = $escapeValues ? $this->db->escape($val) : $val;
5644
                    }
5645
                }
5646
            }
5647
        }
5648
        return $params;