Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 1563f41

Browse files
committed
🚿 clean up docblocks
1 parent c65de36 commit 1563f41

File tree

3 files changed

+0
-36
lines changed

3 files changed

+0
-36
lines changed

src/Core/OAuth1Provider.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ public function getRequestToken():AccessToken{
7272
*
7373
* @link https://tools.ietf.org/html/rfc5849#section-2.1
7474
*
75-
* @param \Psr\Http\Message\ResponseInterface $response
76-
* @param bool|null $checkCallbackConfirmed
77-
*
78-
* @return \chillerlan\OAuth\Core\AccessToken
7975
* @throws \chillerlan\OAuth\Core\ProviderException
8076
*/
8177
protected function parseTokenResponse(ResponseInterface $response, bool $checkCallbackConfirmed = null):AccessToken{
@@ -116,8 +112,6 @@ protected function parseTokenResponse(ResponseInterface $response, bool $checkCa
116112

117113
/**
118114
* returns a 32 byte random string (in hexadecimal representation) for use as a nonce
119-
*
120-
* @return string
121115
*/
122116
protected function nonce():string{
123117
$nonce = random_bytes(32);
@@ -134,12 +128,6 @@ protected function nonce():string{
134128
*
135129
* @link https://tools.ietf.org/html/rfc5849#section-3.4
136130
*
137-
* @param string $url
138-
* @param array $params
139-
* @param string $method
140-
* @param string|null $accessTokenSecret
141-
*
142-
* @return string
143131
* @throws \chillerlan\OAuth\Core\ProviderException
144132
*/
145133
protected function getSignature(string $url, array $params, string $method, string $accessTokenSecret = null):string{

src/Core/OAuth2Provider.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ public function getAuthURL(array $params = null, array $scopes = null):UriInterf
9999
*
100100
* @link https://tools.ietf.org/html/rfc6749#section-4.1.4
101101
*
102-
* @param \Psr\Http\Message\ResponseInterface $response
103-
*
104-
* @return \chillerlan\OAuth\Core\AccessToken
105102
* @throws \chillerlan\OAuth\Core\ProviderException
106103
* @throws \JsonException
107104
*/
@@ -196,9 +193,6 @@ public function getRequestAuthorization(RequestInterface $request, AccessToken $
196193
*
197194
* @see \chillerlan\OAuth\Core\ClientCredentials
198195
*
199-
* @param array|null $scopes
200-
*
201-
* @return \chillerlan\OAuth\Core\AccessToken
202196
* @throws \chillerlan\OAuth\Core\ProviderException
203197
*/
204198
public function getClientCredentialsToken(array $scopes = null):AccessToken{
@@ -237,9 +231,6 @@ public function getClientCredentialsToken(array $scopes = null):AccessToken{
237231
*
238232
* @see \chillerlan\OAuth\Core\TokenRefresh
239233
*
240-
* @param \chillerlan\OAuth\Core\AccessToken|null $token
241-
*
242-
* @return \chillerlan\OAuth\Core\AccessToken
243234
* @throws \chillerlan\OAuth\Core\ProviderException
244235
*/
245236
public function refreshAccessToken(AccessToken $token = null):AccessToken{
@@ -296,9 +287,6 @@ public function refreshAccessToken(AccessToken $token = null):AccessToken{
296287
*
297288
* @see \chillerlan\OAuth\Core\CSRFToken
298289
*
299-
* @param string|null $state
300-
*
301-
* @return void
302290
* @throws \chillerlan\OAuth\Core\ProviderException
303291
* @internal
304292
*/
@@ -326,9 +314,6 @@ public function checkState(string $state = null):void{
326314
*
327315
* @see \chillerlan\OAuth\Core\CSRFToken
328316
*
329-
* @param array $params
330-
*
331-
* @return array
332317
* @throws \chillerlan\OAuth\Core\ProviderException
333318
* @internal
334319
*/

src/Core/OAuthProvider.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,6 @@ abstract class OAuthProvider implements OAuthInterface{
144144
/**
145145
* OAuthProvider constructor.
146146
*
147-
* @param \Psr\Http\Client\ClientInterface $http
148-
* @param \chillerlan\OAuth\Storage\OAuthStorageInterface $storage
149-
* @param \chillerlan\Settings\SettingsContainerInterface $options
150-
* @param \Psr\Log\LoggerInterface|null $logger
151-
*
152147
* @throws \chillerlan\OAuth\MagicAPI\ApiClientException
153148
*/
154149
public function __construct(
@@ -240,10 +235,6 @@ public function setUriFactory(UriFactoryInterface $uriFactory):OAuthInterface{
240235
/**
241236
* Magic API endpoint access. ugly, isn't it?
242237
*
243-
* @param string $endpointName
244-
* @param array $arguments
245-
*
246-
* @return \Psr\Http\Message\ResponseInterface
247238
* @throws \chillerlan\OAuth\MagicAPI\ApiClientException
248239
*/
249240
public function __call(string $endpointName, array $arguments):ResponseInterface{

0 commit comments

Comments
 (0)