Code Duplication    Length = 9-10 lines in 4 locations

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

@@ 280-289 (lines=10) @@
277
    /**
278
     * {@inheritdoc}
279
     */
280
    public function fetchColumn($columnIndex = 0)
281
    {
282
        $row = $this->fetch(\PDO::FETCH_NUM);
283
284
        if (false === $row) {
285
            return false;
286
        }
287
288
        return isset($row[$columnIndex]) ? $row[$columnIndex] : null;
289
    }
290
291
    /**
292
     * {@inheritdoc}

lib/Doctrine/DBAL/Driver/SQLAnywhere/SQLAnywhereStatement.php 1 location

@@ 265-274 (lines=10) @@
262
    /**
263
     * {@inheritdoc}
264
     */
265
    public function fetchColumn($columnIndex = 0)
266
    {
267
        $row = $this->fetch(PDO::FETCH_NUM);
268
269
        if (false === $row) {
270
            return false;
271
        }
272
273
        return isset($row[$columnIndex]) ? $row[$columnIndex] : null;
274
    }
275
276
    /**
277
     * {@inheritdoc}

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

@@ 348-356 (lines=9) @@
345
    /**
346
     * {@inheritdoc}
347
     */
348
    public function fetchColumn($columnIndex = 0)
349
    {
350
        $row = $this->fetch(PDO::FETCH_NUM);
351
        if (false === $row) {
352
            return false;
353
        }
354
355
        return isset($row[$columnIndex]) ? $row[$columnIndex] : null;
356
    }
357
358
    /**
359
     * {@inheritdoc}

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

@@ 363-372 (lines=10) @@
360
    /**
361
     * {@inheritdoc}
362
     */
363
    public function fetchColumn($columnIndex = 0)
364
    {
365
        $row = $this->fetch(PDO::FETCH_NUM);
366
367
        if (false === $row) {
368
            return false;
369
        }
370
371
        return isset($row[$columnIndex]) ? $row[$columnIndex] : null;
372
    }
373
374
    /**
375
     * {@inheritdoc}