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/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}