Code Duplication    Length = 5-5 lines in 2 locations

PHPDaemon/Clients/Mongo/Pool.php 2 locations

@@ 1296-1300 (lines=5) @@
1293
                "\x00\x00\x00\x00" . $col . "\x00" . bson_encode($doc),
1294
                false,
1295
                null,
1296
                function ($conn, $reqId = null) use ($cb, $col, $params) {
1297
                    if ($cb !== null) {
1298
                        $this->lastError($col, $cb, $params, $conn);
1299
                    }
1300
                }
1301
            );
1302
1303
            return $doc['_id'];
@@ 1373-1377 (lines=5) @@
1370
            "\x00\x00\x00\x00" . $col . "\x00" . $bson,
1371
            false,
1372
            null,
1373
            function ($conn, $reqId = null) use ($cb, $col, $params) {
1374
                if ($cb !== null) {
1375
                    $this->lastError($col, $cb, $params, $conn);
1376
                }
1377
            }
1378
        );
1379
1380
        return $ids;