@@ -187,13 +187,13 @@ public function where($column, $operator = null, $value = null, $boolean = 'and'
187187 public function delete ($ id = null ): int
188188 {
189189 // If an ID is passed to the method we will delete the record with this internal FileMaker record ID
190- if (! is_null ($ id )) {
190+ if (!is_null ($ id )) {
191191 $ this ->where ($ this ->defaultKeyName (), '= ' , $ id );
192192 }
193193 $ this ->applyBeforeQueryCallbacks ();
194194
195195 // Check if we have a record ID to delete or if this is a query for a bulk delete
196- if ($ this ->getRecordId () === null ){
196+ if ($ this ->getRecordId () === null ) {
197197 // There's no individual record ID to delete, so do a bulk delete
198198 return $ this ->bulkDeleteFromQuery ();
199199 }
@@ -508,24 +508,26 @@ public function whereIn($column, $values, $boolean = 'and', $not = false)
508508 'boolean ' => $ boolean ,
509509 'not ' => $ not
510510 ];
511+
512+ return $ this ;
511513 }
512514
513515 protected function computeWhereIns ()
514516 {
515517 // If no where in clauses return
516- if (empty ($ this ->whereIns )) {
518+ if (empty ($ this ->whereIns )) {
517519 return ;
518520 }
519521
520- $ whereIns = array_map (function ($ whereIn ) {
522+ $ whereIns = array_map (function ($ whereIn ) {
521523 $ finds = [];
522524
523- foreach ($ whereIn ['values ' ] as $ value ) {
525+ foreach ($ whereIn ['values ' ] as $ value ) {
524526 $ find = [
525527 $ whereIn ['column ' ] => $ value ,
526528 ];
527529
528- if ($ whereIn ['not ' ]) {
530+ if ($ whereIn ['not ' ]) {
529531 $ find ['omit ' ] = true ;
530532 }
531533
@@ -535,12 +537,12 @@ protected function computeWhereIns()
535537 return $ finds ;
536538 }, $ this ->whereIns );
537539
538- if (empty ($ this ->wheres )) {
540+ if (empty ($ this ->wheres )) {
539541 $ this ->wheres = Arr::flatten ($ whereIns , 1 );
540542 return ;
541543 }
542544
543- $ this ->wheres = Arr::map (Arr::crossJoin ($ this ->wheres , ...$ whereIns ), function ($ conditions ) {
545+ $ this ->wheres = Arr::map (Arr::crossJoin ($ this ->wheres , ...$ whereIns ), function ($ conditions ) {
544546 return array_merge (...array_values ($ conditions ));
545547 });
546548 }
0 commit comments