Completed
Pull Request — master (#774)
by
unknown
12:17
created
src/Authorizer.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,10 +130,10 @@  discard block
 block discarded – undo
130 130
     /**
131 131
      * Get a single parameter from the auth code request parameters.
132 132
      *
133
-     * @param $key
133
+     * @param string $key
134 134
      * @param null $default
135 135
      *
136
-     * @return mixed
136
+     * @return string
137 137
      */
138 138
     public function getAuthCodeRequestParam($key, $default = null)
139 139
     {
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      * @param bool $httpHeadersOnly whether or not to check only the http headers of the request
217 217
      * @param string|null $accessToken an access token to validate
218 218
      *
219
-     * @return mixed
219
+     * @return boolean
220 220
      */
221 221
     public function validateAccessToken($httpHeadersOnly = false, $accessToken = null)
222 222
     {
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     /**
227 227
      * get the scopes associated with the current request.
228 228
      *
229
-     * @return array
229
+     * @return \League\OAuth2\Server\Entity\ScopeEntity[]
230 230
      */
231 231
     public function getScopes()
232 232
     {
Please login to merge, or discard this patch.
src/Storage/FluentAccessToken.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      *
45 45
      * @param string $token The access token
46 46
      *
47
-     * @return null|AbstractTokenEntity
47
+     * @return null|AccessTokenEntity
48 48
      */
49 49
     public function get($token)
50 50
     {
Please login to merge, or discard this patch.
src/Storage/FluentClient.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
      * @param string $id The client's unique id
156 156
      * @param string $secret The clients' unique secret
157 157
      *
158
-     * @return string
158
+     * @return integer
159 159
      */
160 160
     public function create($name, $id, $secret)
161 161
     {
Please login to merge, or discard this patch.
src/Grant/SSOGrant.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,13 +10,13 @@
 block discarded – undo
10 10
 
11 11
 namespace LucaDegasperi\OAuth2Server\Grant;
12 12
 
13
-use League\OAuth2\Server\Grant\AbstractGrant;
14 13
 use League\OAuth2\Server\Entity\AccessTokenEntity;
15 14
 use League\OAuth2\Server\Entity\ClientEntity;
16 15
 use League\OAuth2\Server\Entity\RefreshTokenEntity;
17 16
 use League\OAuth2\Server\Entity\SessionEntity;
18 17
 use League\OAuth2\Server\Event;
19 18
 use League\OAuth2\Server\Exception;
19
+use League\OAuth2\Server\Grant\AbstractGrant;
20 20
 use League\OAuth2\Server\Util\SecureKey;
21 21
 
22 22
 /**
Please login to merge, or discard this patch.
src/Grant/TokenGrant.php 1 patch
Unused Use Statements   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,13 +13,11 @@
 block discarded – undo
13 13
 
14 14
 use League\OAuth2\Server\Entity\AccessTokenEntity;
15 15
 use League\OAuth2\Server\Entity\ClientEntity;
16
-use League\OAuth2\Server\Entity\RefreshTokenEntity;
17
-use League\OAuth2\Server\Entity\SessionEntity;
18 16
 use League\OAuth2\Server\Event;
19 17
 use League\OAuth2\Server\Exception;
20
-use League\OAuth2\Server\Util\SecureKey;
21
-use League\OAuth2\Server\ResourceServer;
22 18
 use League\OAuth2\Server\Grant\AbstractGrant;
19
+use League\OAuth2\Server\ResourceServer;
20
+use League\OAuth2\Server\Util\SecureKey;
23 21
 
24 22
 /**
25 23
  * Password grant class
Please login to merge, or discard this patch.