@@ -119,7 +119,7 @@ public function aggregate(array $pipeline, array $options = array())
119119 */
120120 public function bulkWrite (array $ operations , array $ options = array ())
121121 {
122- if ( ! isset ($ options ['writeConcern ' ]) && isset ( $ this -> writeConcern ) ) {
122+ if ( ! isset ($ options ['writeConcern ' ])) {
123123 $ options ['writeConcern ' ] = $ this ->writeConcern ;
124124 }
125125
@@ -205,7 +205,7 @@ public function createIndexes(array $indexes)
205205 */
206206 public function deleteMany ($ filter , array $ options = array ())
207207 {
208- if ( ! isset ($ options ['writeConcern ' ]) && isset ( $ this -> writeConcern ) ) {
208+ if ( ! isset ($ options ['writeConcern ' ])) {
209209 $ options ['writeConcern ' ] = $ this ->writeConcern ;
210210 }
211211
@@ -226,7 +226,7 @@ public function deleteMany($filter, array $options = array())
226226 */
227227 public function deleteOne ($ filter , array $ options = array ())
228228 {
229- if ( ! isset ($ options ['writeConcern ' ]) && isset ( $ this -> writeConcern ) ) {
229+ if ( ! isset ($ options ['writeConcern ' ])) {
230230 $ options ['writeConcern ' ] = $ this ->writeConcern ;
231231 }
232232
@@ -453,7 +453,7 @@ public function getNamespace()
453453 */
454454 public function insertMany (array $ documents , array $ options = array ())
455455 {
456- if ( ! isset ($ options ['writeConcern ' ]) && isset ( $ this -> writeConcern ) ) {
456+ if ( ! isset ($ options ['writeConcern ' ])) {
457457 $ options ['writeConcern ' ] = $ this ->writeConcern ;
458458 }
459459
@@ -474,7 +474,7 @@ public function insertMany(array $documents, array $options = array())
474474 */
475475 public function insertOne ($ document , array $ options = array ())
476476 {
477- if ( ! isset ($ options ['writeConcern ' ]) && isset ( $ this -> writeConcern ) ) {
477+ if ( ! isset ($ options ['writeConcern ' ])) {
478478 $ options ['writeConcern ' ] = $ this ->writeConcern ;
479479 }
480480
@@ -510,7 +510,7 @@ public function listIndexes(array $options = array())
510510 */
511511 public function replaceOne ($ filter , $ replacement , array $ options = array ())
512512 {
513- if ( ! isset ($ options ['writeConcern ' ]) && isset ( $ this -> writeConcern ) ) {
513+ if ( ! isset ($ options ['writeConcern ' ])) {
514514 $ options ['writeConcern ' ] = $ this ->writeConcern ;
515515 }
516516
@@ -532,7 +532,7 @@ public function replaceOne($filter, $replacement, array $options = array())
532532 */
533533 public function updateMany ($ filter , $ update , array $ options = array ())
534534 {
535- if ( ! isset ($ options ['writeConcern ' ]) && isset ( $ this -> writeConcern ) ) {
535+ if ( ! isset ($ options ['writeConcern ' ])) {
536536 $ options ['writeConcern ' ] = $ this ->writeConcern ;
537537 }
538538
@@ -554,7 +554,7 @@ public function updateMany($filter, $update, array $options = array())
554554 */
555555 public function updateOne ($ filter , $ update , array $ options = array ())
556556 {
557- if ( ! isset ($ options ['writeConcern ' ]) && isset ( $ this -> writeConcern ) ) {
557+ if ( ! isset ($ options ['writeConcern ' ])) {
558558 $ options ['writeConcern ' ] = $ this ->writeConcern ;
559559 }
560560
0 commit comments