Rename DBA::inArray to DBA::toArray

This commit is contained in:
Hypolite Petovan 2018-07-20 22:03:40 -04:00
parent f051ae1698
commit 4db98eb43d
17 changed files with 34 additions and 34 deletions

View file

@ -43,7 +43,7 @@ class FKOAuthDataStore extends OAuthDataStore
logger(__function__ . ":" . $consumer_key);
$s = DBA::select('clients', ['client_id', 'pw', 'redirect_uri'], ['client_id' => $consumer_key]);
$r = DBA::inArray($s);
$r = DBA::toArray($s);
if (DBM::is_result($r)) {
return new OAuthConsumer($r[0]['client_id'], $r[0]['pw'], $r[0]['redirect_uri']);
@ -63,7 +63,7 @@ class FKOAuthDataStore extends OAuthDataStore
logger(__function__ . ":" . $consumer . ", " . $token_type . ", " . $token);
$s = DBA::select('tokens', ['id', 'secret', 'scope', 'expires', 'uid'], ['client_id' => $consumer->key, 'scope' => $token_type, 'id' => $token]);
$r = DBA::inArray($s);
$r = DBA::toArray($s);
if (DBM::is_result($r)) {
$ot = new OAuthToken($r[0]['id'], $r[0]['secret']);