File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 33return [
44 'directory_list ' => [
55 'src ' ,
6+ 'vendor ' ,
67 ],
78 'exclude_file_regex ' => '@^vendor/.*/(tests?|Tests?)/@ ' ,
89 'exclude_analysis_directory_list ' => [
Original file line number Diff line number Diff line change 77use OAuth \Common \Http \Uri \Uri ;
88use OAuth \Common \Http \Uri \UriInterface ;
99use OAuth \Common \Storage \TokenStorageInterface ;
10- use OAuth \OAuth1 \Service \AbstractService ;
1110use OAuth \OAuth1 \Service \Flickr ;
1211use OAuth \OAuth1 \Signature \SignatureInterface ;
1312
@@ -37,17 +36,17 @@ public static function setBaseUrl($baseUrl)
3736 static ::$ baseUrl = rtrim ($ baseUrl , '/ ' );
3837 }
3938
40- public function getRequestTokenEndpoint ()
39+ public function getRequestTokenEndpoint (): UriInterface
4140 {
4241 return new Uri (static ::$ baseUrl . '/oauth/request_token ' );
4342 }
4443
45- public function getAuthorizationEndpoint ()
44+ public function getAuthorizationEndpoint (): UriInterface
4645 {
4746 return new Uri (static ::$ baseUrl . '/oauth/authorize ' );
4847 }
4948
50- public function getAccessTokenEndpoint ()
49+ public function getAccessTokenEndpoint (): UriInterface
5150 {
5251 return new Uri (static ::$ baseUrl . '/oauth/access_token ' );
5352 }
Original file line number Diff line number Diff line change 2626use OAuth \Common \Consumer \Credentials ;
2727use OAuth \Common \Http \Client \CurlClient ;
2828use OAuth \Common \Http \Uri \Uri ;
29+ use OAuth \Common \Http \Uri \UriInterface ;
2930use OAuth \Common \Storage \Memory ;
3031use OAuth \Common \Storage \TokenStorageInterface ;
3132use OAuth \OAuth1 \Service \Flickr ;
@@ -281,8 +282,8 @@ public function getOauthService($callbackUrl = 'oob')
281282 $ factory ->registerService ('Flickr ' , PhpFlickrService::class);
282283 $ factory ->setHttpClient (new CurlClient ());
283284 $ storage = $ this ->getOauthTokenStorage ();
284- /** @var PhpFlickrService $flickrService */
285285 $ this ->oauthService = $ factory ->createService ('Flickr ' , $ credentials , $ storage );
286+ assert ($ this ->oauthService instanceof PhpFlickrService);
286287 return $ this ->oauthService ;
287288 }
288289
@@ -295,7 +296,7 @@ public function getOauthService($callbackUrl = 'oob')
295296 * @param string $perm One of 'read', 'write', or 'delete'.
296297 * @param string $callbackUrl Defaults to 'oob' ('out-of-band') for when no callback is
297298 * required, for example for console usage.
298- * @return Uri
299+ * @return UriInterface
299300 */
300301 public function getAuthUrl ($ perm = 'read ' , $ callbackUrl = 'oob ' )
301302 {
You can’t perform that action at this time.
0 commit comments