Code Duplication    Length = 7-9 lines in 2 locations

src/AdbackAnalytics/Driver/MysqliScriptCache.php 1 location

@@ 43-49 (lines=7) @@
40
     * @param string $key
41
     * @param string $value
42
     */
43
    protected function set($key, $value)
44
    {
45
        $this->clear($key);
46
        $request = $this->connection->prepare("INSERT INTO adback_cache_table (our_key, our_value) VALUES (?, ?)");
47
        $request->bind_param('ss', $key, $value);
48
        $request->execute();
49
    }
50
51
    /**
52
     * @param string $key

src/AdbackAnalytics/Driver/PdoScriptCache.php 1 location

@@ 45-53 (lines=9) @@
42
     * @param string $key
43
     * @param string $value
44
     */
45
    protected function set($key, $value)
46
    {
47
        $this->clear($key);
48
        $request = $this->connection->prepare("INSERT INTO adback_cache_table (our_key, our_value) VALUES (:key, :value)");
49
        $request->execute([
50
            'key' => $key,
51
            'value' => $value,
52
        ]);
53
    }
54
55
    /**
56
     * @param string $key