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/Mysqli/MysqliConnection.php 1 location

@@ 126-134 (lines=9) @@
123
    /**
124
     * {@inheritdoc}
125
     */
126
    public function query()
127
    {
128
        $args = func_get_args();
129
        $sql = $args[0];
130
        $stmt = $this->prepare($sql);
131
        $stmt->execute();
132
133
        return $stmt;
134
    }
135
136
    /**
137
     * {@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}