Format code using php-cs-fixer
This commit is contained in:
parent
43d7dc92cd
commit
d52c6184b9
352 changed files with 17473 additions and 17041 deletions
|
@ -1,31 +1,30 @@
|
|||
<?php
|
||||
|
||||
interface OAuth2 {
|
||||
|
||||
interface OAuth2
|
||||
{
|
||||
/**
|
||||
* Check whether an OAuth access token exists
|
||||
* Check whether an OAuth access token exists.
|
||||
*
|
||||
* @return bool true if an access token exists, otherwise false
|
||||
*/
|
||||
public function hasAccessToken();
|
||||
|
||||
/**
|
||||
* Get the OAuth authorization URL
|
||||
* Get the OAuth authorization URL.
|
||||
*
|
||||
* @return string the authorization URL
|
||||
*/
|
||||
public function getAuthorizeUrl();
|
||||
|
||||
/**
|
||||
* Request a new OAuth access token and store it in CcPref
|
||||
* Request a new OAuth access token and store it in CcPref.
|
||||
*
|
||||
* @param $code string exchange authorization code for access token
|
||||
*/
|
||||
public function requestNewAccessToken($code);
|
||||
|
||||
/**
|
||||
* Regenerate the OAuth access token
|
||||
* Regenerate the OAuth access token.
|
||||
*/
|
||||
public function accessTokenRefresh();
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,27 +1,20 @@
|
|||
<?php
|
||||
|
||||
interface OAuth2Controller {
|
||||
|
||||
interface OAuth2Controller
|
||||
{
|
||||
/**
|
||||
* Send user to a third-party service to authorize before being redirected
|
||||
*
|
||||
* @return void
|
||||
* Send user to a third-party service to authorize before being redirected.
|
||||
*/
|
||||
public function authorizeAction();
|
||||
|
||||
/**
|
||||
* Clear the previously saved request token from the preferences
|
||||
*
|
||||
* @return void
|
||||
* Clear the previously saved request token from the preferences.
|
||||
*/
|
||||
public function deauthorizeAction();
|
||||
|
||||
/**
|
||||
* Called when user successfully completes third-party authorization
|
||||
* Store the returned request token for future requests
|
||||
*
|
||||
* @return void
|
||||
* Store the returned request token for future requests.
|
||||
*/
|
||||
public function redirectAction();
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,28 +1,23 @@
|
|||
<?php
|
||||
|
||||
interface Publish {
|
||||
|
||||
interface Publish
|
||||
{
|
||||
/**
|
||||
* Publish the file with the given file ID
|
||||
* Publish the file with the given file ID.
|
||||
*
|
||||
* @param int $fileId ID of the file to be published
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function publish($fileId);
|
||||
|
||||
/**
|
||||
* Unpublish the file with the given file ID
|
||||
* Unpublish the file with the given file ID.
|
||||
*
|
||||
* @param int $fileId ID of the file to be unpublished
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function unpublish($fileId);
|
||||
|
||||
|
||||
/**
|
||||
* Fetch the publication status for the file with the given ID
|
||||
* Fetch the publication status for the file with the given ID.
|
||||
*
|
||||
* @param int $fileId the ID of the file to check
|
||||
*
|
||||
|
@ -32,5 +27,4 @@ interface Publish {
|
|||
* 2 if the source is unreachable (disconnected)
|
||||
*/
|
||||
public function getPublishStatus($fileId);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue