Completed
Branch master (5ea0f0)
by CodexShaper
02:27
created
src/Entities/User.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      *
15 15
      * @param string|int $identifier
16 16
      *
17
-     * @return void
17
+     * @return UserEntityInterface
18 18
      */
19 19
     public function __construct($identifier)
20 20
     {
Please login to merge, or discard this patch.
src/Http/Controllers/AuthorizationController.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -56,6 +56,9 @@
 block discarded – undo
56 56
         }
57 57
     }
58 58
 
59
+    /**
60
+     * @param \League\OAuth2\Server\RequestTypes\AuthorizationRequest $authRequest
61
+     */
59 62
     public function filterScopes($authRequest)
60 63
     {
61 64
         return array_filter($authRequest->getScopes(), function ($scope) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use CodexShaper\OAuth2\Server\Manager;
8 8
 use CodexShaper\OAuth2\Server\Model;
9 9
 use CodexShaper\OAuth2\Server\Models\User;
10
-use Illuminate\Http\Request;
11 10
 use League\OAuth2\Server\Exception\OAuthServerException;
12 11
 use Psr\Http\Message\ResponseInterface;
13 12
 use Psr\Http\Message\ServerRequestInterface;
Please login to merge, or discard this patch.
src/Manager.php 1 patch
Doc Comments   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     /**
109 109
      * Get all available scopes.
110 110
      *
111
-     * @return array
111
+     * @return string
112 112
      */
113 113
     public static function getScopes()
114 114
     {
@@ -121,8 +121,6 @@  discard block
 block discarded – undo
121 121
      *
122 122
      * @param \League\OAuth2\Server\Entities\ScopeEntityInterface[] $scopes
123 123
      * @param string                                                $grantType
124
-     * @param \League\OAuth2\Server\Entities\ClientEntityInterface  $clientEntity
125
-     * @param null|string                                           $userIdentifier
126 124
      *
127 125
      * @return \League\OAuth2\Server\Entities\ScopeEntityInterface[]
128 126
      */
@@ -272,7 +270,7 @@  discard block
 block discarded – undo
272 270
     /**
273 271
      * Create a resource server for validation.
274 272
      *
275
-     * @return \League\OAuth2\Server\ResourServer
273
+     * @return ResourceServer
276 274
      */
277 275
     public function getResourceServer()
278 276
     {
@@ -285,8 +283,8 @@  discard block
 block discarded – undo
285 283
     /**
286 284
      * Create a CryptKey instance without permissions check.
287 285
      *
288
-     * @param string $key
289 286
      *
287
+     * @param string $type
290 288
      * @return \League\OAuth2\Server\CryptKey
291 289
      */
292 290
     protected function makeCryptKey($type)
Please login to merge, or discard this patch.
src/Model.php 1 patch
Doc Comments   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      *
55 55
      * @param string $clientIdentifier The client's identifier
56 56
      *
57
-     * @return \League\OAuth2\Server\Entities\ClientEntityInterface|null
57
+     * @return null|ClientEntity
58 58
      */
59 59
     public static function getClientEntity($clientIdentifier)
60 60
     {
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * store a new auth code to permanent storage.
79 79
      *
80
-     * @param \League\OAuth2\Server\Entities\AuthCodeEntityInterface $accessTokenEntity
81 80
      *
81
+     * @param \League\OAuth2\Server\Entities\AuthCodeEntityInterface $authCodeEntity
82 82
      * @return void
83 83
      */
84 84
     public static function storeAuthCode($authCodeEntity)
@@ -212,7 +212,6 @@  discard block
 block discarded – undo
212 212
      * Revoke provided token id.
213 213
      *
214 214
      * @param string $model
215
-     * @param string $grantType
216 215
      *
217 216
      * @return void
218 217
      */
@@ -225,7 +224,6 @@  discard block
 block discarded – undo
225 224
      * Determine if the given token id is revoked or not.
226 225
      *
227 226
      * @param string $model
228
-     * @param string $grantType
229 227
      *
230 228
      * @return bool
231 229
      */
@@ -238,7 +236,7 @@  discard block
 block discarded – undo
238 236
      * Authorization token.
239 237
      *
240 238
      * @param string $model
241
-     * @param array  $data
239
+     * @param \League\OAuth2\Server\RequestTypes\AuthorizationRequest $authRequest
242 240
      *
243 241
      * @return \CodexShaper\OAuth2\Server\Models\AuthCode|\CodexShaper\OAuth2\Server\Models\Client|\CodexShaper\OAuth2\Server\Models\RefreshToken|\CodexShaper\OAuth2\Server\Models\Token|\CodexShaper\OAuth2\Server\Models\User|null
244 242
      */
Please login to merge, or discard this patch.
src/ResourceServer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
19 19
     /**
20 20
      * Create a CryptKey instance without permissions check.
21 21
      *
22
-     * @param string $key
23 22
      *
23
+     * @param string $type
24 24
      * @return \League\OAuth2\Server\CryptKey
25 25
      */
26 26
     protected function makeCryptKey($type)
Please login to merge, or discard this patch.