Code Duplication    Length = 6-6 lines in 3 locations

mod/elgg_recaptcha/classes/BrowserDetection.php 3 locations

@@ 897-902 (lines=6) @@
894
    {
895
        //Since the W3C validates pages with different robots we will prefix our versions with the part validated on the page...
896
        //W3C Link Checker (prefixed with "Link-")
897
        if ($this->checkSimpleBrowserUA('W3C-checklink', $this->_agent, self::BROWSER_W3CVALIDATOR, false, true)) {
898
            if ($this->getVersion() != self::VERSION_UNKNOWN) {
899
                $this->setVersion('Link-' . $this->getVersion());
900
            }
901
            return true;
902
        }
903
        //W3C CSS Validation Service (prefixed with "CSS-")
904
        if ($this->checkSimpleBrowserUA('Jigsaw', $this->_agent, self::BROWSER_W3CVALIDATOR, false, true)) {
905
            if ($this->getVersion() != self::VERSION_UNKNOWN) {
@@ 904-909 (lines=6) @@
901
            return true;
902
        }
903
        //W3C CSS Validation Service (prefixed with "CSS-")
904
        if ($this->checkSimpleBrowserUA('Jigsaw', $this->_agent, self::BROWSER_W3CVALIDATOR, false, true)) {
905
            if ($this->getVersion() != self::VERSION_UNKNOWN) {
906
                $this->setVersion('CSS-' . $this->getVersion());
907
            }
908
            return true;
909
        }
910
        //W3C mobileOK Checker (prefixed with "mobileOK-")
911
        if ($this->checkSimpleBrowserUA('W3C-mobileOK', $this->_agent, self::BROWSER_W3CVALIDATOR, false, true)) {
912
            if ($this->getVersion() != self::VERSION_UNKNOWN) {
@@ 911-916 (lines=6) @@
908
            return true;
909
        }
910
        //W3C mobileOK Checker (prefixed with "mobileOK-")
911
        if ($this->checkSimpleBrowserUA('W3C-mobileOK', $this->_agent, self::BROWSER_W3CVALIDATOR, false, true)) {
912
            if ($this->getVersion() != self::VERSION_UNKNOWN) {
913
                $this->setVersion('mobileOK-' . $this->getVersion());
914
            }
915
            return true;
916
        }
917
        //W3C Markup Validation Service (no prefix)
918
        return $this->checkSimpleBrowserUA('W3C_Validator', $this->_agent, self::BROWSER_W3CVALIDATOR, false, true);
919
    }