Code Duplication    Length = 3-3 lines in 2 locations

SEOstats/Services/Sistrix.php 2 locations

@@ 81-83 (lines=3) @@
78
        }
79
80
        $json_decoded = (Helper\Json::decode($json, true));
81
        if (!isset($json_decoded['answer'][0]['sichtbarkeitsindex'][0]['value'])) {
82
            return parent::noDataDefaultValue();
83
        }
84
        return $json_decoded['answer'][0]['sichtbarkeitsindex'][0]['value'];
85
    }
86
@@ 99-101 (lines=3) @@
96
        }
97
98
        $json_decoded = (Helper\Json::decode($json, true));
99
        if (!isset($json_decoded['answer'][0]['credits'][0]['value'])) {
100
            return parent::noDataDefaultValue();
101
        }
102
        return $json_decoded['answer'][0]['credits'][0]['value'];
103
    }
104