Code Duplication    Length = 7-8 lines in 2 locations

SEOstats/Services/SemRush.php 1 location

@@ 221-227 (lines=7) @@
218
     *
219
     * @throws E
220
     */
221
    protected static function exc($err)
222
    {
223
        $e = ($err == 'db') ? "Invalid database. Choose one of: " .
224
            substr( implode(", ", self::getDBs()), 0, -2) : $err;
225
        throw new E($e);
226
        exit(0);
227
    }
228
229
    protected static function getDomainFromUrl($url)
230
    {

SEOstats/Services/Sistrix.php 1 location

@@ 172-179 (lines=8) @@
169
        }
170
    }
171
172
    private static function exc($err)
173
    {
174
        $e = ($err == 'db')
175
            ? "Invalid database. Choose one of: " .
176
               substr( implode(", ", self::getDBs()), 0, -2)
177
            : $err;
178
        throw new E($e);
179
    }
180
}
181