Completed
Push — master ( 96bb9e...dc511e )
by Hilmi Erdem
02:05
created
src/TemporaryAccessService.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @param AuthenticatableContract $authenticatable The authenticatable who owns the token.
44 44
      * @param string|TokenInterface   $encryptedText   The token of the authenticatable.
45 45
      *
46
-     * @return null|AccessTokenInterface
46
+     * @return GenericAccessToken|null
47 47
      */
48 48
     public function retrieve(AuthenticatableContract $authenticatable, $encryptedText)
49 49
     {
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @param AuthenticatableContract $authenticatable The authenticatable who owns the token.
59 59
      * @param string|TokenInterface   $plainText       The token of the authenticatable.
60 60
      *
61
-     * @return null|AccessTokenInterface
61
+     * @return GenericAccessToken|null
62 62
      */
63 63
     public function retrieveUsingPlainText(AuthenticatableContract $authenticatable, $plainText)
64 64
     {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      * Determine if an access token exists and is valid.
74 74
      *
75 75
      * @param  AuthenticatableContract $authenticatable The authenticatable who owns the token.
76
-     * @param  string|TokenInterface   $encryptedText   The encrypted token of the authenticatable.
76
+     * @param  TokenInterface   $encryptedText   The encrypted token of the authenticatable.
77 77
      *
78 78
      * @return bool
79 79
      */
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      * If no prolong time given, we will reset the original expire time.
103 103
      *
104 104
      * @param  AuthenticatableContract $authenticatable The authenticatable who owns the token.
105
-     * @param  string|TokenInterface   $encryptedText   The token of the authenticatable.
105
+     * @param  TokenInterface   $encryptedText   The token of the authenticatable.
106 106
      * @param  int|null                $prolong         The prolong time in minutes.
107 107
      *
108 108
      * @return bool|AccessTokenInterface
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
      * @param  array $queryParams The key - value pairs to match.
199 199
      * @param  array $attributes  The attributes to be returned from the storage.
200 200
      *
201
-     * @return AccessTokenInterface|null
201
+     * @return null|GenericAccessToken
202 202
      */
203 203
     public function retrieveByAttributes(array $queryParams, array $attributes = ['*'])
204 204
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
 namespace Erdemkeren\TemporaryAccess;
4 4
 
5 5
 use Carbon\Carbon;
6
-use Erdemkeren\TemporaryAccess\Contracts\TokenInterface;
7 6
 use Erdemkeren\TemporaryAccess\Contracts\AccessTokenInterface;
8
-use Erdemkeren\TemporaryAccess\Contracts\TokenGeneratorInterface;
9 7
 use Erdemkeren\TemporaryAccess\Contracts\AccessTokenRepositoryInterface;
8
+use Erdemkeren\TemporaryAccess\Contracts\TokenGeneratorInterface;
9
+use Erdemkeren\TemporaryAccess\Contracts\TokenInterface;
10 10
 use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
11 11
 
12 12
 final class TemporaryAccessService
Please login to merge, or discard this patch.