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

Commit f4d49f8

Browse files
committed
:octocat:
1 parent ee80a10 commit f4d49f8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Core/OAuth1Provider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function parseTokenResponse(ResponseInterface $response, bool $checkCa
8383
throw new ProviderException('error retrieving access token: '.$data['error']);
8484
}
8585
elseif(!isset($data['oauth_token']) || !isset($data['oauth_token_secret'])){
86-
throw new ProviderException('token missing');
86+
throw new ProviderException('invalid token');
8787
}
8888

8989
if($checkCallbackConfirmed && (!isset($data['oauth_callback_confirmed']) || $data['oauth_callback_confirmed'] !== 'true')){

src/Core/OAuthProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function __construct(HttpClient $http, OAuthStorageInterface $storage, Se
137137
$this->endpoints = new $this->endpointMap;
138138

139139
if(!$this->endpoints instanceof EndpointMapInterface){
140-
throw new ApiClientException('invalid endpoint map');
140+
throw new ApiClientException('invalid endpoint map'); // @codeCoverageIgnore
141141
}
142142

143143
}
@@ -162,6 +162,7 @@ public function __get(string $name):?string{
162162
* @param \Psr\Http\Message\RequestFactoryInterface $requestFactory
163163
*
164164
* @return \chillerlan\OAuth\Core\OAuthInterface
165+
* @codeCoverageIgnore
165166
*/
166167
public function setRequestFactory(RequestFactoryInterface $requestFactory):OAuthInterface{
167168
$this->requestFactory = $requestFactory;
@@ -173,6 +174,7 @@ public function setRequestFactory(RequestFactoryInterface $requestFactory):OAuth
173174
* @param \Psr\Http\Message\StreamFactoryInterface $streamFactory
174175
*
175176
* @return \chillerlan\OAuth\Core\OAuthInterface
177+
* @codeCoverageIgnore
176178
*/
177179
public function setStreamFactory(StreamFactoryInterface $streamFactory):OAuthInterface{
178180
$this->streamFactory = $streamFactory;
@@ -184,6 +186,7 @@ public function setStreamFactory(StreamFactoryInterface $streamFactory):OAuthInt
184186
* @param \Psr\Http\Message\UriFactoryInterface $uriFactory
185187
*
186188
* @return \chillerlan\OAuth\Core\OAuthInterface
189+
* @codeCoverageIgnore
187190
*/
188191
public function setUriFactory(UriFactoryInterface $uriFactory):OAuthInterface{
189192
$this->uriFactory = $uriFactory;

0 commit comments

Comments
 (0)