Code Duplication    Length = 10-10 lines in 2 locations

src/RobotsTxtParser/Cache/SQL/Maintenance.php 2 locations

@@ 47-56 (lines=10) @@
44
     * @param int $delay - in seconds
45
     * @return bool
46
     */
47
    public function cleanCache($delay = self::CACHE_TIME)
48
    {
49
        $query = $this->pdo->prepare(<<<SQL
50
DELETE FROM robotstxt__cache0
51
WHERE worker = 0 AND nextUpdate < (UNIX_TIMESTAMP() - :delay);
52
SQL
53
        );
54
        $query->bindParam(':delay', $delay, PDO::PARAM_INT);
55
        return $query->execute();
56
    }
57
58
    /**
59
     * Clean the delay table
@@ 64-73 (lines=10) @@
61
     * @param int $delay - in seconds
62
     * @return bool
63
     */
64
    public function cleanDelay($delay = 60)
65
    {
66
        $query = $this->pdo->prepare(<<<SQL
67
DELETE FROM robotstxt__delay0
68
WHERE microTime < ((UNIX_TIMESTAMP() - :delay) * 1000000);
69
SQL
70
        );
71
        $query->bindParam(':delay', $delay, PDO::PARAM_INT);
72
        return $query->execute();
73
    }
74
}
75