Test Failed
Push — master ( a6b51e...5fffdb )
by Gabriel
08:05
created
src/Models/AccessTokens/Token.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
     }
90 90
 
91 91
     /**
92
-     * @param $scopes
92
+     * @param \League\OAuth2\Server\Entities\ScopeEntityInterface[] $scopes
93 93
      */
94 94
     public function addScopes($scopes)
95 95
     {
Please login to merge, or discard this patch.
src/Models/AccessTokens/Tokens.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      *
28 28
      * @param ClientEntityInterface $clientEntity
29 29
      * @param ScopeEntityInterface[] $scopes
30
-     * @param mixed $userIdentifier
30
+     * @param string $userIdentifier
31 31
      *
32 32
      * @return AccessTokenEntityInterface|Token
33 33
      */
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      *
73 73
      * @param string $tokenId
74 74
      *
75
-     * @return bool Return true if this token has been revoked
75
+     * @return string|boolean Return true if this token has been revoked
76 76
      */
77 77
     public function isAccessTokenRevoked($tokenId)
78 78
     {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     }
102 102
 
103 103
     /**
104
-     * @param $tokenId
104
+     * @param string $tokenId
105 105
      * @return Token|null
106 106
      */
107 107
     public function getByIdentifier($tokenId)
Please login to merge, or discard this patch.
src/Models/Clients/PersonalAccess/TokenFactory.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @param mixed $userId
57 57
      * @param string $name
58 58
      * @param array $scopes
59
-     * @return \Laravel\Passport\PersonalAccessTokenResult
59
+     * @return Token
60 60
      */
61 61
     public function make($userId, $name, array $scopes = [])
62 62
     {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      * @param Client $client
76 76
      * @param mixed $userId
77 77
      * @param array $scopes
78
-     * @return Request
78
+     * @return ServerRequest
79 79
      */
80 80
     protected function createRequest($client, $userId, array $scopes)
81 81
     {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     /**
92 92
      * Dispatch the given request to the authorization server.
93 93
      *
94
-     * @param Request $request
94
+     * @param ServerRequest $request
95 95
      * @return array
96 96
      */
97 97
     protected function dispatchRequestToAuthorizationServer(ServerRequest $request)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use ByTIC\Hello\Models\AccessTokens\Token;
6 6
 use ByTIC\Hello\Models\Clients\Client;
7 7
 use ByTIC\Hello\Utility\ModelsHelper;
8
-use Firebase\JWT\JWT;
9 8
 use League\OAuth2\Server\AuthorizationServer;
10 9
 use Lcobucci\JWT\Parser as JwtParser;
11 10
 use Nip\Container\Container;
Please login to merge, or discard this patch.
src/Models/Clients/Traits/ClientHasGrantsTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     }
61 61
 
62 62
     /**
63
-     * @param $grant
63
+     * @param null|string $grant
64 64
      * @return bool
65 65
      */
66 66
     public function handlesGrant($grant)
Please login to merge, or discard this patch.
src/Models/Clients/Traits/ClientHasRedirectTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
     /**
15 15
      * @param $redirect
16
-     * @return string
16
+     * @return ClientHasRedirectTrait
17 17
      */
18 18
     public function setRedirectUri($redirect)
19 19
     {
Please login to merge, or discard this patch.
src/Models/Traits/HasApiTokensTrait.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use ByTIC\Hello\Models\AccessTokens\Token;
6 6
 use ByTIC\Hello\Models\Clients\PersonalAccess\TokenFactory;
7
-use ByTIC\Hello\Utility\ModelsHelper;
8 7
 use Nip\Container\Container;
9 8
 
10 9
 /**
Please login to merge, or discard this patch.
AbstractModule/Controllers/Traits/AbstractAuthenticationControllerTrait.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
     }
25 25
 
26 26
     /**
27
-     * @param null $type
28 27
      */
29 28
     protected function checkIsAuthenticated()
30 29
     {
Please login to merge, or discard this patch.
AbstractModule/Controllers/Traits/HasAuthenticationVariablesTrait.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
     }
83 83
 
84 84
     /**
85
-     * @param $key
85
+     * @param string $key
86 86
      * @param null $default
87
-     * @return mixed
87
+     * @return string
88 88
      */
89 89
     protected function getAuthenticationValue($key, $default = null)
90 90
     {
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
     /**
117 117
      * @param $value
118
-     * @return mixed
118
+     * @return string
119 119
      */
120 120
     protected function decodeVariables($value)
121 121
     {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
     /**
126 126
      * @param $value
127
-     * @return mixed
127
+     * @return string
128 128
      */
129 129
     protected function encodeVariable($value)
130 130
     {
Please login to merge, or discard this patch.
src/Oauth/ServiceProvider/Traits/CryptKeysTrait.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     /**
26 26
      * @param $return
27
-     * @return array
27
+     * @return string[]
28 28
      */
29 29
     protected function appendCryptKeysToProvide($return)
30 30
     {
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * Create a CryptKey instance without permissions check
38 38
      *
39
-     * @param  $type
39
+     * @param  string $type
40 40
      * @return \League\OAuth2\Server\CryptKey
41 41
      */
42 42
     protected function makeCryptKey($type)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace ByTIC\Hello\Oauth\ServiceProvider\Traits;
4 4
 
5
-use ByTIC\Hello\Utility\ConfigHelper;
6 5
 use ByTIC\Hello\Utility\CryptHelper;
7 6
 use League\OAuth2\Server\CryptKey;
8 7
 
Please login to merge, or discard this patch.