@@ -444,7 +444,7 @@ public function aggregate($function, $columns = [])
444444 $ this ->bindings ['select ' ] = $ previousSelectBindings ;
445445
446446 if (isset ($ results [0 ])) {
447- $ result = (array )$ results [0 ];
447+ $ result = (array ) $ results [0 ];
448448
449449 return $ result ['aggregate ' ];
450450 }
@@ -537,7 +537,7 @@ public function insert(array $values)
537537 // Batch insert
538538 $ result = $ this ->collection ->insertMany ($ values );
539539
540- return (1 == (int )$ result ->isAcknowledged ());
540+ return (1 == (int ) $ result ->isAcknowledged ());
541541 }
542542
543543 /**
@@ -547,7 +547,7 @@ public function insertGetId(array $values, $sequence = null)
547547 {
548548 $ result = $ this ->collection ->insertOne ($ values );
549549
550- if (1 == (int )$ result ->isAcknowledged ()) {
550+ if (1 == (int ) $ result ->isAcknowledged ()) {
551551 if (is_null ($ sequence )) {
552552 $ sequence = '_id ' ;
553553 }
@@ -609,7 +609,7 @@ public function pluck($column, $key = null)
609609 // Convert ObjectID's to strings
610610 if ($ key == '_id ' ) {
611611 $ results = $ results ->map (function ($ item ) {
612- $ item ['_id ' ] = (string )$ item ['_id ' ];
612+ $ item ['_id ' ] = (string ) $ item ['_id ' ];
613613 return $ item ;
614614 });
615615 }
@@ -632,7 +632,7 @@ public function delete($id = null)
632632
633633 $ wheres = $ this ->compileWheres ();
634634 $ result = $ this ->collection ->DeleteMany ($ wheres );
635- if (1 == (int )$ result ->isAcknowledged ()) {
635+ if (1 == (int ) $ result ->isAcknowledged ()) {
636636 return $ result ->getDeletedCount ();
637637 }
638638
@@ -658,7 +658,7 @@ public function truncate()
658658 {
659659 $ result = $ this ->collection ->drop ();
660660
661- return (1 == (int )$ result ->ok );
661+ return (1 == (int ) $ result ->ok );
662662 }
663663
664664 /**
@@ -789,7 +789,7 @@ protected function performUpdate($query, array $options = [])
789789
790790 $ wheres = $ this ->compileWheres ();
791791 $ result = $ this ->collection ->UpdateMany ($ wheres , $ query , $ options );
792- if (1 == (int )$ result ->isAcknowledged ()) {
792+ if (1 == (int ) $ result ->isAcknowledged ()) {
793793 return $ result ->getModifiedCount () ? $ result ->getModifiedCount () : $ result ->getUpsertedCount ();
794794 }
795795
0 commit comments