@@ -444,7 +444,7 @@ public function aggregate($function, $columns = [])
444
444
$ this ->bindings ['select ' ] = $ previousSelectBindings ;
445
445
446
446
if (isset ($ results [0 ])) {
447
- $ result = (array )$ results [0 ];
447
+ $ result = (array ) $ results [0 ];
448
448
449
449
return $ result ['aggregate ' ];
450
450
}
@@ -537,7 +537,7 @@ public function insert(array $values)
537
537
// Batch insert
538
538
$ result = $ this ->collection ->insertMany ($ values );
539
539
540
- return (1 == (int )$ result ->isAcknowledged ());
540
+ return (1 == (int ) $ result ->isAcknowledged ());
541
541
}
542
542
543
543
/**
@@ -547,7 +547,7 @@ public function insertGetId(array $values, $sequence = null)
547
547
{
548
548
$ result = $ this ->collection ->insertOne ($ values );
549
549
550
- if (1 == (int )$ result ->isAcknowledged ()) {
550
+ if (1 == (int ) $ result ->isAcknowledged ()) {
551
551
if (is_null ($ sequence )) {
552
552
$ sequence = '_id ' ;
553
553
}
@@ -609,7 +609,7 @@ public function pluck($column, $key = null)
609
609
// Convert ObjectID's to strings
610
610
if ($ key == '_id ' ) {
611
611
$ results = $ results ->map (function ($ item ) {
612
- $ item ['_id ' ] = (string )$ item ['_id ' ];
612
+ $ item ['_id ' ] = (string ) $ item ['_id ' ];
613
613
return $ item ;
614
614
});
615
615
}
@@ -632,7 +632,7 @@ public function delete($id = null)
632
632
633
633
$ wheres = $ this ->compileWheres ();
634
634
$ result = $ this ->collection ->DeleteMany ($ wheres );
635
- if (1 == (int )$ result ->isAcknowledged ()) {
635
+ if (1 == (int ) $ result ->isAcknowledged ()) {
636
636
return $ result ->getDeletedCount ();
637
637
}
638
638
@@ -658,7 +658,7 @@ public function truncate()
658
658
{
659
659
$ result = $ this ->collection ->drop ();
660
660
661
- return (1 == (int )$ result ->ok );
661
+ return (1 == (int ) $ result ->ok );
662
662
}
663
663
664
664
/**
@@ -789,7 +789,7 @@ protected function performUpdate($query, array $options = [])
789
789
790
790
$ wheres = $ this ->compileWheres ();
791
791
$ result = $ this ->collection ->UpdateMany ($ wheres , $ query , $ options );
792
- if (1 == (int )$ result ->isAcknowledged ()) {
792
+ if (1 == (int ) $ result ->isAcknowledged ()) {
793
793
return $ result ->getModifiedCount () ? $ result ->getModifiedCount () : $ result ->getUpsertedCount ();
794
794
}
795
795
0 commit comments