@@ -355,10 +355,12 @@ public function update($query, $bindings = [])
355355 if ($ e ->getCode () !== 101 ) {
356356 throw $ e ;
357357 }
358+
358359 // Error 101 - Record Not Found
359360 // we didn't end up updating any records
360361 return 0 ;
361362 }
363+
362364 // one record has been edited
363365 return 1 ;
364366 }
@@ -651,7 +653,7 @@ protected function makeRequest($method, $url, $params = [], ?PendingRequest $req
651653 $ response = $ request ->{$ method }($ url , $ params );
652654 // Check for errors
653655 try {
654- $ this ->checkResponseForErrors ($ response );
656+ $ this ->checkResponseForErrors ($ response );
655657 } catch (FileMakerDataApiException $ e ) {
656658 if ($ e ->getCode () === 952 ) {
657659 // the session expired, so we should forget the token and re-login
@@ -684,8 +686,8 @@ protected function retryMiddleware()
684686 return Middleware::retry (function (
685687 $ retries ,
686688 RequestInterface $ request ,
687- ResponseInterface $ response = null ,
688- TransferException $ exception = null
689+ ? ResponseInterface $ response = null ,
690+ ? TransferException $ exception = null
689691 ) {
690692 // Limit the number of retries to 5
691693 if ($ retries >= $ this ->retries ) {
@@ -722,19 +724,18 @@ protected function getDefaultQueryGrammar()
722724 return new FMGrammar ();
723725 }
724726
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+ // }
730732
731733 /**
732- * @param string|FMBaseBuilder $query
733734 * @return mixed
734735 *
735736 * @throws FileMakerDataApiException
736737 */
737- public function getLayoutMetadata (FMBaseBuilder |string $ query = null )
738+ public function getLayoutMetadata (FMBaseBuilder |string | null $ query = null )
738739 {
739740 // if the query is just a string, it means that it's a layout name
740741 if (is_string ($ query )) {
0 commit comments