Code Duplication    Length = 7-8 lines in 2 locations

class/phpbrowscap/Browscap.php 2 locations

@@ 677-684 (lines=8) @@
674
                }
675
            }
676
677
            if (!empty($properties['Parent'])) {
678
                $parent = $properties['Parent'];
679
680
                $parentKey = $userAgentsKeys[$parent];
681
682
                $properties['Parent']                 = $parentKey;
683
                $this->_userAgents[$parentKey . '.0'] = $tmpUserAgents[$parentKey];
684
            };
685
686
            $this->_browsers[] = $this->resortProperties($properties, $propertiesKeys);
687
        }
@@ 786-792 (lines=7) @@
783
                }
784
            }
785
786
            if (!empty($properties['Parent'])) {
787
                $parent    = $properties['Parent'];
788
                $parentKey = $userAgentsKeys[$parent];
789
790
                $properties['Parent']                       = $parentKey - 1;
791
                $this->_userAgents[($parentKey - 1) . '.0'] = $patternPositions[$parentKey];
792
            };
793
794
            $this->_browsers[] = $this->resortProperties($properties, $propertiesKeys);
795
        }