Code Duplication    Length = 8-8 lines in 2 locations

src/Database/CouchbaseConnection.php 2 locations

@@ 314-321 (lines=8) @@
311
            }
312
            $query = \CouchbaseN1qlQuery::fromString($query);
313
314
            if ($this->breakingVersion()) {
315
                $query->consistency($this->consistency);
316
                $query->namedParams(['parameters' => $bindings]);
317
                $result = $this->executeQuery($query);
318
                $this->metrics = (isset($result->metrics)) ? $result->metrics : [];
319
320
                return (isset($result->rows[0])) ? $result->rows[0] : false;
321
            }
322
            // @codeCoverageIgnoreStart
323
            $query->consistency($this->consistency);
324
            $bucket = $this->openBucket($this->bucket);
@@ 349-356 (lines=8) @@
346
            }
347
            $query = \CouchbaseN1qlQuery::fromString($query);
348
349
            if ($this->breakingVersion()) {
350
                $query->consistency($this->consistency);
351
                $query->positionalParams($bindings);
352
                $result = $this->executeQuery($query);
353
                $this->metrics = (isset($result->metrics)) ? $result->metrics : [];
354
355
                return (isset($result->rows[0])) ? $result->rows[0] : false;
356
            }
357
358
            // @codeCoverageIgnoreStart
359
            $query->consistency($this->consistency);