@@ -260,7 +260,7 @@ public function __construct(string $solution,
260260 * @param array $params Array to build the API path. Ex: `["layouts" => null]` or `["sessions" => $this->accessToken]`.
261261 * @param string|array|null $request The query parameters as `"key" => "value"`.
262262 * @param string $methodLower The method in lowercase. Ex: `"get"`, `"delete"`, etc.
263- * @param bool $isSystem If the query is for the system (sessions, databases, etc) or for a database.
263+ * @param bool $isSystem If the query is for the system (sessions, databases, etc. ) or for a database.
264264 * @param string|null|false $directPath If we don't want to build the path with the other parameters, you can provide the direct path.
265265 * @return string
266266 * @ignore
@@ -554,9 +554,9 @@ private function getSupportingProviders(): null|array
554554 $ this ->callRestAPI ([], true , 'GET ' , [], [],
555555 false , "/fmws/oauthproviderinfo " ); // Throw Exception
556556 $ result = [];
557- foreach ($ this ->responseBody as $ key => $ item ) {
558-
559- }
557+ // foreach ($this->responseBody as $key => $item) {
558+ //
559+ // }
560560 return $ result ;
561561 } catch (Exception $ ex ) {
562562 return null ;
@@ -587,9 +587,9 @@ private function getOAuthIdentifier($provider): string|array|null
587587 false , "/oauth/getoauthurl "
588588 ); // Throw Exception
589589 $ result = [];
590- foreach ($ this ->responseBody as $ key => $ item ) {
591-
592- }
590+ // foreach ($this->responseBody as $key => $item) {
591+ //
592+ // }
593593 return $ result ;
594594 } catch (Exception $ ex ) {
595595 return null ;
@@ -600,7 +600,7 @@ private function getOAuthIdentifier($provider): string|array|null
600600 * @param array $params
601601 * @param bool $isAddToken
602602 * @param string $method
603- * @param array|null $request
603+ * @param string| array|null $request
604604 * @param array|null $addHeader
605605 * @param bool $isSystem for Metadata
606606 * @param string|null|false $directPath
@@ -698,6 +698,7 @@ public function callRestAPI(array $params,
698698 * Thanks to 'base64bits' as https://github.com/msyk/FMDataAPI/issues/18.
699699 * @param string $url
700700 * @return string The base64 encoded data in container field.
701+ * @throws Exception
701702 * @ignore
702703 */
703704 public function accessToContainer (string $ url ): string
@@ -732,7 +733,7 @@ public function accessToContainer(string $url): string
732733 /**
733734 * @ignore
734735 */
735- public function storeToProperties ()
736+ public function storeToProperties (): void
736737 {
737738 $ this ->httpStatus = 0 ;
738739 $ this ->errorCode = -1 ;
@@ -790,7 +791,7 @@ public function storeToProperties()
790791 * @return string
791792 * @ignore
792793 */
793- public function adjustSortDirection ($ direction ): string
794+ public function adjustSortDirection (string $ direction ): string
794795 {
795796 if (strtoupper ($ direction ) == 'ASC ' ) {
796797 $ direction = 'ascend ' ;
@@ -806,7 +807,7 @@ public function adjustSortDirection($direction): string
806807 * @return mixed
807808 * @ignore
808809 */
809- public function getCurlInfo ($ key )
810+ public function getCurlInfo ($ key ): mixed
810811 {
811812 return $ this ->curlInfo [$ key ];
812813 }
0 commit comments