Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update return types
  • Loading branch information
cursedcoder committed May 25, 2015
commit 10c66900199199f84d947a8521e1e80077e7bf8d
4 changes: 2 additions & 2 deletions doc/authorizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ $authorization = $github->api('authorizations')->reset(1234, 'token');
#### Revoke an authorization

```php
$authorization = $github->api('authorizations')->revoke(1234, 'token');
$github->api('authorizations')->revoke(1234, 'token');
```

#### Revoke all authorizations

```php
$authorization = $github->api('authorizations')->revokeAll(1234);
$github->api('authorizations')->revokeAll(1234);
```
4 changes: 1 addition & 3 deletions lib/Github/Api/Authorizations.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,10 @@ public function reset($clientId, $token)
*
* @param $clientId
* @param $token
*
* @return array
*/
public function revoke($clientId, $token)
{
return $this->delete('applications/'.rawurlencode($clientId).'/tokens/'.rawurlencode($token));
$this->delete('applications/'.rawurlencode($clientId).'/tokens/'.rawurlencode($token));
}

/**
Expand Down