Completed
Pull Request — master (#498)
by Dragonqos
02:30
created
src/OAuth/Common/Http/Client/CurlClient.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     /**
29 29
      * Additional `curl_setopt` parameters
30 30
      *
31
-     * @param array $parameters
31
+     * @param string[] $parameters
32 32
      */
33 33
     public function setCurlParameters(array $parameters)
34 34
     {
Please login to merge, or discard this patch.
src/OAuth/Common/Http/Client/StreamClient.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -76,6 +76,9 @@
 block discarded – undo
76 76
         return $response;
77 77
     }
78 78
 
79
+    /**
80
+     * @param string $method
81
+     */
79 82
     private function generateStreamContext($body, $headers, $method)
80 83
     {
81 84
         return stream_context_create(
Please login to merge, or discard this patch.
src/OAuth/Common/Storage/SymfonySession.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
     }
192 192
 
193 193
     /**
194
-     * @return Session
194
+     * @return SessionInterface
195 195
      */
196 196
     public function getSession()
197 197
     {
Please login to merge, or discard this patch.
src/OAuth/OAuth1/Service/Etsy.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
     /**
108 108
      * Set the scopes for permissions
109 109
      * @see https://www.etsy.com/developers/documentation/getting_started/oauth#section_permission_scopes
110
-     * @param array $scopes
110
+     * @param string[] $scopes
111 111
      *
112 112
      * @return $this
113 113
      */
Please login to merge, or discard this patch.
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -2,14 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace OAuth\OAuth1\Service;
4 4
 
5
-use OAuth\OAuth1\Signature\SignatureInterface;
6 5
 use OAuth\OAuth1\Token\StdOAuth1Token;
7 6
 use OAuth\Common\Http\Exception\TokenResponseException;
8 7
 use OAuth\Common\Http\Uri\Uri;
9
-use OAuth\Common\Consumer\CredentialsInterface;
10
-use OAuth\Common\Http\Uri\UriInterface;
11
-use OAuth\Common\Storage\TokenStorageInterface;
12
-use OAuth\Common\Http\Client\ClientInterface;
13 8
 
14 9
 class Etsy extends AbstractService
15 10
 {
Please login to merge, or discard this patch.
src/OAuth/OAuth1/Service/Twitter.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,6 @@
 block discarded – undo
54 54
     }
55 55
 
56 56
     /**
57
-     * @param string $authorizationEndpoint
58 57
      *
59 58
      * @throws Exception
60 59
      */
Please login to merge, or discard this patch.
src/OAuth/OAuth2/Service/Buffer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -96,6 +96,9 @@
 block discarded – undo
96 96
         return $code;
97 97
     }
98 98
 
99
+    /**
100
+     * @param string $responseBody
101
+     */
99 102
     protected function parseRequestTokenResponse($responseBody)
100 103
     {
101 104
         parse_str($responseBody, $data);
Please login to merge, or discard this patch.
tests/Unit/OAuth2/Service/StravaTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace OAuthTest\Unit\OAuth2\Service;
4 4
 
5 5
 use OAuth\OAuth2\Service\Strava;
6
-use OAuth\Common\Token\TokenInterface;
7 6
 
8 7
 class StravaTest extends \PHPUnit_Framework_TestCase
9 8
 {
Please login to merge, or discard this patch.
tests/Unit/OAuth2/Service/GoogleTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace OAuthTest\Unit\OAuth2\Service;
4 4
 
5 5
 use OAuth\OAuth2\Service\Strava;
6
-use OAuth\Common\Token\TokenInterface;
7 6
 
8 7
 class StravaTest extends \PHPUnit_Framework_TestCase
9 8
 {
Please login to merge, or discard this patch.
src/OAuth/ServiceFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
      * @param string                $serviceName Name of service to create
96 96
      * @param CredentialsInterface  $credentials
97 97
      * @param TokenStorageInterface $storage
98
-     * @param array|null            $scopes      If creating an oauth2 service, array of scopes
98
+     * @param string[]            $scopes      If creating an oauth2 service, array of scopes
99 99
      * @param UriInterface|null     $baseApiUri
100 100
      * @param string                $apiVersion version of the api call
101 101
      * @param null                  $account of service to create
Please login to merge, or discard this patch.