Code Duplication    Length = 3-3 lines in 2 locations

examples/SafeBrowsing/index.php 1 location

@@ 46-48 (lines=3) @@
43
44
        $settings = require_once '../settings.php';
45
46
        if (!isset($settings["safebrowsing"]["key"]) || !$settings["safebrowsing"]["key"]) {
47
            throw new SafeBrowsingException('Empty Safe Browsing key');
48
        }
49
50
        if (isset($_GET['url']) && $_GET['url']) {
51
            $url = $_GET['url'];

examples/SafeBrowsing/lookup.php 1 location

@@ 44-46 (lines=3) @@
41
42
        $settings = require_once '../settings.php';
43
44
        if (!isset($settings["safebrowsing"]["key"]) || !$settings["safebrowsing"]["key"]) {
45
            throw new SafeBrowsingException('Empty Safe Browsing key');
46
        }
47
48
        if (isset($_GET['url']) && $_GET['url']) {
49
            $url = $_GET['url'];