Code Duplication    Length = 7-7 lines in 2 locations

mod/elgg_recaptcha/classes/BrowserDetection.php 2 locations

@@ 388-394 (lines=7) @@
385
            return true;
386
        }
387
        //Version 6, 7 & 10 check (versions 8 & 9 does not exists)
388
        if ($this->checkBrowserUAWithVersion(array('BlackBerry', 'BB10'), $this->_agent, self::BROWSER_BLACKBERRY, true)) {
389
            if ($this->getVersion() == self::VERSION_UNKNOWN) {
390
                $found = true;
391
            } else {
392
                return true;
393
            }
394
        }
395
        //Version 4.2 to 5.0 check
396
        if ($this->checkSimpleBrowserUA('BlackBerry', $this->_agent, self::BROWSER_BLACKBERRY, true)) {
397
            if ($this->getVersion() == self::VERSION_UNKNOWN) {
@@ 396-402 (lines=7) @@
393
            }
394
        }
395
        //Version 4.2 to 5.0 check
396
        if ($this->checkSimpleBrowserUA('BlackBerry', $this->_agent, self::BROWSER_BLACKBERRY, true)) {
397
            if ($this->getVersion() == self::VERSION_UNKNOWN) {
398
                $found = true;
399
            } else {
400
                return true;
401
            }
402
        }
403
        return $found;
404
    }
405
    /**