Code Duplication    Length = 5-5 lines in 2 locations

PHPDaemon/Clients/Mongo/Pool.php 2 locations

@@ 1292-1296 (lines=5) @@
1289
                "\x00\x00\x00\x00" . $col . "\x00" . bson_encode($doc),
1290
                false,
1291
                null,
1292
                function ($conn, $reqId = null) use ($cb, $col, $params) {
1293
                    if ($cb !== null) {
1294
                        $this->lastError($col, $cb, $params, $conn);
1295
                    }
1296
                }
1297
            );
1298
1299
            return $doc['_id'];
@@ 1369-1373 (lines=5) @@
1366
            "\x00\x00\x00\x00" . $col . "\x00" . $bson,
1367
            false,
1368
            null,
1369
            function ($conn, $reqId = null) use ($cb, $col, $params) {
1370
                if ($cb !== null) {
1371
                    $this->lastError($col, $cb, $params, $conn);
1372
                }
1373
            }
1374
        );
1375
1376
        return $ids;