Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
17 | public function execute() |
||
18 | { |
||
19 | $database = $this->getDatabase(); |
||
20 | |||
21 | $users = UserSearchHelper::get($database)->inIds( |
||
22 | $database->query('SELECT user FROM oauthtoken WHERE type = \'access\'')->fetchColumn()); |
||
23 | |||
24 | foreach ($users as $u){ |
||
|
|||
25 | $oauth = new OAuthUserHelper($u, $database, $this->getOAuthProtocolHelper(), $this->getSiteConfiguration()); |
||
26 | $oauth->detach(); |
||
27 | } |
||
28 | |||
29 | $database->exec('DELETE FROM oauthtoken'); |
||
30 | $database->exec('DELETE FROM oauthidentity'); |
||
31 | } |
||
32 | } |