Code Duplication    Length = 4-4 lines in 3 locations

mod/elgg_recaptcha/classes/BrowserDetection.php 3 locations

@@ 874-877 (lines=4) @@
871
            if (stripos($userAgent, $currUANameToLookFor) !== false) {
872
                $version = '';
873
                $verParts = explode('/', stristr($this->_agent, 'Version'));
874
                if (count($verParts) > 1) {
875
                    $verParts = explode(' ', $verParts[1]);
876
                    $version = $verParts[0];
877
                }
878
                $this->setBrowser($browserName);
879
                $this->setVersion($version);
880
                $this->setMobile($isMobile);
@@ 940-943 (lines=4) @@
937
        if (stripos($this->_agent, 'AOL ') !== false) {
938
            $version = '';
939
            $verParts = explode('AOL ', stristr($this->_agent, 'AOL '));
940
            if (count($verParts) > 1) {
941
                $verParts = explode(' ', $verParts[1]);
942
                $version = $verParts[0];
943
            }
944
            $this->setAol(true);
945
            $this->setAolVersion($version);
946
            return true;
@@ 1046-1049 (lines=4) @@
1043
                }
1044
                $version = '';
1045
                $verParts = explode($separator, stristr($userAgent, $currUANameToLookFor));
1046
                if (count($verParts) > 1) {
1047
                    $verParts = explode(' ', $verParts[1]);
1048
                    $version = $verParts[0];
1049
                }
1050
                $this->setBrowser($browserName);
1051
                $this->setVersion($version);
1052
                $this->setMobile($isMobile);