Code Duplication    Length = 7-8 lines in 2 locations

class/phpbrowscap/Browscap.php 2 locations

@@ 668-675 (lines=8) @@
665
                }
666
            }
667
668
            if (!empty($properties['Parent'])) {
669
                $parent = $properties['Parent'];
670
671
                $parentKey = $userAgentsKeys[$parent];
672
673
                $properties['Parent']                 = $parentKey;
674
                $this->_userAgents[$parentKey . '.0'] = $tmpUserAgents[$parentKey];
675
            };
676
677
            $this->_browsers[] = $this->resortProperties($properties, $propertiesKeys);
678
        }
@@ 771-777 (lines=7) @@
768
                }
769
            }
770
771
            if (!empty($properties['Parent'])) {
772
                $parent    = $properties['Parent'];
773
                $parentKey = $userAgentsKeys[$parent];
774
775
                $properties['Parent']                       = $parentKey - 1;
776
                $this->_userAgents[($parentKey - 1) . '.0'] = $patternPositions[$parentKey];
777
            };
778
779
            $this->_browsers[] = $this->resortProperties($properties, $propertiesKeys);
780
        }