@@ -355,10 +355,12 @@ public function update($query, $bindings = [])
355
355
if ($ e ->getCode () !== 101 ) {
356
356
throw $ e ;
357
357
}
358
+
358
359
// Error 101 - Record Not Found
359
360
// we didn't end up updating any records
360
361
return 0 ;
361
362
}
363
+
362
364
// one record has been edited
363
365
return 1 ;
364
366
}
@@ -651,7 +653,7 @@ protected function makeRequest($method, $url, $params = [], ?PendingRequest $req
651
653
$ response = $ request ->{$ method }($ url , $ params );
652
654
// Check for errors
653
655
try {
654
- $ this ->checkResponseForErrors ($ response );
656
+ $ this ->checkResponseForErrors ($ response );
655
657
} catch (FileMakerDataApiException $ e ) {
656
658
if ($ e ->getCode () === 952 ) {
657
659
// the session expired, so we should forget the token and re-login
@@ -684,8 +686,8 @@ protected function retryMiddleware()
684
686
return Middleware::retry (function (
685
687
$ retries ,
686
688
RequestInterface $ request ,
687
- ResponseInterface $ response = null ,
688
- TransferException $ exception = null
689
+ ? ResponseInterface $ response = null ,
690
+ ? TransferException $ exception = null
689
691
) {
690
692
// Limit the number of retries to 5
691
693
if ($ retries >= $ this ->retries ) {
@@ -722,19 +724,18 @@ protected function getDefaultQueryGrammar()
722
724
return new FMGrammar ();
723
725
}
724
726
725
- // public function getLayoutMetadata($layout = null)
726
- // {
727
- // $response = $this->makeRequest('get', $this->getLayoutUrl($layout));
728
- // return $response['response'];
729
- // }
727
+ // public function getLayoutMetadata($layout = null)
728
+ // {
729
+ // $response = $this->makeRequest('get', $this->getLayoutUrl($layout));
730
+ // return $response['response'];
731
+ // }
730
732
731
733
/**
732
- * @param string|FMBaseBuilder $query
733
734
* @return mixed
734
735
*
735
736
* @throws FileMakerDataApiException
736
737
*/
737
- public function getLayoutMetadata (FMBaseBuilder |string $ query = null )
738
+ public function getLayoutMetadata (FMBaseBuilder |string | null $ query = null )
738
739
{
739
740
// if the query is just a string, it means that it's a layout name
740
741
if (is_string ($ query )) {
0 commit comments