Skip to content

Commit

Permalink
Update FlarumApiService.php
Browse files Browse the repository at this point in the history
  • Loading branch information
llaumgui authored Dec 19, 2023
1 parent 281e8b6 commit fbd9d08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FlarumApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct() {
* @param string $password Flarum password
* @return int Flarum user Uid
*/
public function connect( string $username, string $password ) : int {
public function connect( string $username, string $password ): int {
try {
$response = $this->guzzleClient->request( 'POST', $this->flarumApiUri . '/api/token', [
'form_params' => [
Expand Down Expand Up @@ -89,7 +89,7 @@ public function connect( string $username, string $password ) : int {
* @param int $uid Flarum user uid
* @return array|false Array Flarum user informations
*/
public function getUserInfo( int $uid ) : ?array {
public function getUserInfo( int $uid ): ?array {
$response = $this->guzzleClient->request( 'GET', $this->flarumApiUri . '/api/users/' . $uid, [
'headers' => [
'Authorization' => 'Token ' . $this->token
Expand Down

0 comments on commit fbd9d08

Please sign in to comment.