Code Duplication    Length = 9-10 lines in 4 locations

lib/Doctrine/DBAL/Driver/IBMDB2/DB2Connection.php 1 location

@@ 88-96 (lines=9) @@
85
    /**
86
     * {@inheritdoc}
87
     */
88
    public function query()
89
    {
90
        $args = func_get_args();
91
        $sql = $args[0];
92
        $stmt = $this->prepare($sql);
93
        $stmt->execute();
94
95
        return $stmt;
96
    }
97
98
    /**
99
     * {@inheritdoc}

lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvConnection.php 1 location

@@ 91-99 (lines=9) @@
88
    /**
89
     * {@inheritDoc}
90
     */
91
    public function query()
92
    {
93
        $args = func_get_args();
94
        $sql = $args[0];
95
        $stmt = $this->prepare($sql);
96
        $stmt->execute();
97
98
        return $stmt;
99
    }
100
101
    /**
102
     * {@inheritDoc}

lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php 1 location

@@ 109-118 (lines=10) @@
106
    /**
107
     * {@inheritdoc}
108
     */
109
    public function query()
110
    {
111
        $args = func_get_args();
112
        $sql = $args[0];
113
        //$fetchMode = $args[1];
114
        $stmt = $this->prepare($sql);
115
        $stmt->execute();
116
117
        return $stmt;
118
    }
119
120
    /**
121
     * {@inheritdoc}

lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php 1 location

@@ 135-143 (lines=9) @@
132
    /**
133
     * {@inheritdoc}
134
     */
135
    public function query()
136
    {
137
        $args = func_get_args();
138
        $sql = $args[0];
139
        $stmt = $this->prepare($sql);
140
        $stmt->execute();
141
142
        return $stmt;
143
    }
144
145
    /**
146
     * {@inheritdoc}