Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Commit

Permalink
return array of response and httpcode in User update
Browse files Browse the repository at this point in the history
  • Loading branch information
Kresna Satya committed Mar 24, 2022
1 parent 4e3a25a commit 68e7ad2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,7 @@ public function update($user_id, $data)
$httpcode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);

$users = [];

if ($httpcode === 200) {
$users = json_decode($response, true);
}

return $users;
return array($response, $httpcode);
}

public function getRawAvailableRoles($user_id, $client_id)
Expand Down

0 comments on commit 68e7ad2

Please sign in to comment.