Code Duplication    Length = 10-10 lines in 2 locations

src/Model/Database.php 2 locations

@@ 60-69 (lines=10) @@
57
     *
58
     * @return bool|\PDOStatement
59
     */
60
    public function query($query)
61
    {
62
        $result = parent::query($query);
63
        if (false === $result) {
64
            $this->checkGoneAway();
65
            $result = parent::query($query);
66
        }
67
68
        return $result;
69
    }
70
71
    /**
72
     * @param $query
@@ 76-85 (lines=10) @@
73
     *
74
     * @return bool|int
75
     */
76
    public function exec($query)
77
    {
78
        $result = parent::exec($query);
79
        if (false === $result) {
80
            $this->checkGoneAway();
81
            $result = parent::exec($query);
82
        }
83
84
        return $result;
85
    }
86
}
87