Formatting FKOauthDataStore

This commit is contained in:
Hypolite Petovan 2017-12-17 15:34:29 -05:00
parent 2978b1eef0
commit 910d3f7b5f

View file

@ -1,10 +1,12 @@
<?php <?php
/** /**
* @file src/Protocol/FKOAuthDataStore.php * @file src/Protocol/FKOAuthDataStore.php
* OAuth server * OAuth server
* Based on oauth2-php <http://code.google.com/p/oauth2-php/> * Based on oauth2-php <http://code.google.com/p/oauth2-php/>
* *
*/ */
namespace Friendica\Network; namespace Friendica\Network;
use Friendica\App; use Friendica\App;
@ -169,10 +171,8 @@ class FKOAuthDataStore extends OAuthDataStore
} }
} }
dba::delete('tokens', array('id' => $token->key)); dba::delete('tokens', array('id' => $token->key));
if (!is_null($ret) && !is_null($uverifier)) { if (!is_null($ret) && !is_null($uverifier)) {
Config::delete("oauth", $verifier); Config::delete("oauth", $verifier);
} }