Completed
Branch master (6420a2)
by CodexShaper
02:16
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/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/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.
src/Http/Controllers/AuthorizationController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
      * @param \League\OAuth2\Server\RequestTypes\AuthorizationRequest $authRequest
93 93
      * @param \CodexShaper\OAuth2\Server\Models\User                  $user
94 94
      *
95
-     * @return \League\OAuth2\Server\ResponseTypes\ResponseTypeInterface
95
+     * @return \Psr\Http\Message\ResponseInterface
96 96
      */
97 97
     public function approve($authRequest, $user)
98 98
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use CodexShaper\OAuth2\Server\Manager;
9 9
 use CodexShaper\OAuth2\Server\Model;
10 10
 use CodexShaper\OAuth2\Server\Models\User;
11
-use Illuminate\Http\Request;
12 11
 use League\OAuth2\Server\Exception\OAuthServerException;
13 12
 
14 13
 class AuthorizationController
Please login to merge, or discard this patch.
src/Model.php 1 patch
Doc Comments   +6 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)
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
      * Revoke provided token id.
215 215
      *
216 216
      * @param string $model
217
-     * @param string $grantType
217
+     * @param string $tokenId
218 218
      *
219 219
      * @return void
220 220
      */
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
      * Determine if the given token id is revoked or not.
228 228
      *
229 229
      * @param string $model
230
-     * @param string $grantType
230
+     * @param string $tokenId
231 231
      *
232 232
      * @return bool
233 233
      */
@@ -240,7 +240,8 @@  discard block
 block discarded – undo
240 240
      * Authorization token.
241 241
      *
242 242
      * @param string $model
243
-     * @param array  $data
243
+     * @param \League\OAuth2\Server\RequestTypes\AuthorizationRequest $authRequest
244
+     * @param Models\User $user
244 245
      *
245 246
      * @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
246 247
      */
Please login to merge, or discard this patch.
src/Models/Client.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
     /**
83 83
      * Determine if the client should skip the authorization prompt.
84 84
      *
85
-     * @return bool
85
+     * @return string
86 86
      */
87 87
     public function isSkipsAuthorization()
88 88
     {
Please login to merge, or discard this patch.