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/OCI8/OCI8Connection.php 1 location

@@ 110-119 (lines=10) @@
107
    /**
108
     * {@inheritdoc}
109
     */
110
    public function query()
111
    {
112
        $args = func_get_args();
113
        $sql = $args[0];
114
        //$fetchMode = $args[1];
115
        $stmt = $this->prepare($sql);
116
        $stmt->execute();
117
118
        return $stmt;
119
    }
120
121
    /**
122
     * {@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/Mysqli/MysqliConnection.php 1 location

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