@@ -83,7 +83,7 @@ |
||
83 | 83 | |
84 | 84 | /** |
85 | 85 | * @param array|null $scopes |
86 | - * @param ClientInterface|null $client |
|
86 | + * @param ClientInterface $client |
|
87 | 87 | * |
88 | 88 | * @return array [bool $isScopeValid, string[]|null $scopeList, bool $isScopeModified] |
89 | 89 | */ |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @link https://tools.ietf.org/html/rfc6749#section-4.1.1 |
63 | 63 | * @link https://tools.ietf.org/html/rfc6749#section-4.2.1 |
64 | 64 | */ |
65 | - protected function getResponseType(array $parameters): ?string |
|
65 | + protected function getResponseType(array $parameters): ? string |
|
66 | 66 | { |
67 | 67 | return array_key_exists('response_type', $parameters) === true ? $parameters['response_type'] : null; |
68 | 68 | } |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * @link https://tools.ietf.org/html/rfc6749#section-4.3.2 |
77 | 77 | * @link https://tools.ietf.org/html/rfc6749#section-4.4.2 |
78 | 78 | */ |
79 | - protected function getGrantType(array $parameters): ?string |
|
79 | + protected function getGrantType(array $parameters): ? string |
|
80 | 80 | { |
81 | 81 | return array_key_exists('grant_type', $parameters) === true ? $parameters['grant_type'] : null; |
82 | 82 | } |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | * |
111 | 111 | * @return string|null |
112 | 112 | */ |
113 | - protected function selectValidRedirectUri(ClientInterface $client, string $redirectUri = null): ?string |
|
113 | + protected function selectValidRedirectUri(ClientInterface $client, string $redirectUri = null): ? string |
|
114 | 114 | { |
115 | 115 | $validUri = null; |
116 | 116 | $uris = $client->getRedirectUriStrings(); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @return string|null |
61 | 61 | */ |
62 | - protected function passGetUserName(array $parameters): ?string |
|
62 | + protected function passGetUserName(array $parameters): ? string |
|
63 | 63 | { |
64 | 64 | return $this->passReadStringValue($parameters, 'username'); |
65 | 65 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * |
70 | 70 | * @return string|null |
71 | 71 | */ |
72 | - protected function passGetPassword(array $parameters): ?string |
|
72 | + protected function passGetPassword(array $parameters): ? string |
|
73 | 73 | { |
74 | 74 | return $this->passReadStringValue($parameters, 'password'); |
75 | 75 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * |
80 | 80 | * @return string[]|null |
81 | 81 | */ |
82 | - protected function passGetScope(array $parameters): ?array |
|
82 | + protected function passGetScope(array $parameters): ? array |
|
83 | 83 | { |
84 | 84 | $scope = $this->passReadStringValue($parameters, 'scope'); |
85 | 85 | |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * |
138 | 138 | * @return null|string |
139 | 139 | */ |
140 | - private function passReadStringValue(array $parameters, string $name): ?string |
|
140 | + private function passReadStringValue(array $parameters, string $name): ? string |
|
141 | 141 | { |
142 | 142 | return array_key_exists($name, $parameters) === true && is_string($value = $parameters[$name]) === true ? |
143 | 143 | $value : null; |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * |
58 | 58 | * @return string[]|null |
59 | 59 | */ |
60 | - protected function clientGetScope(array $parameters): ?array |
|
60 | + protected function clientGetScope(array $parameters): ? array |
|
61 | 61 | { |
62 | 62 | $scope = $this->clientReadStringValue($parameters, 'scope'); |
63 | 63 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * |
100 | 100 | * @return null|string |
101 | 101 | */ |
102 | - private function clientReadStringValue(array $parameters, string $name): ?string |
|
102 | + private function clientReadStringValue(array $parameters, string $name): ? string |
|
103 | 103 | { |
104 | 104 | return array_key_exists($name, $parameters) === true && is_string($value = $parameters[$name]) === true ? |
105 | 105 | $value : null; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @return string|null |
61 | 61 | */ |
62 | - protected function implicitGetClientId(array $parameters): ?string |
|
62 | + protected function implicitGetClientId(array $parameters): ? string |
|
63 | 63 | { |
64 | 64 | return $this->implicitReadStringValue($parameters, 'client_id'); |
65 | 65 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * |
70 | 70 | * @return string|null |
71 | 71 | */ |
72 | - protected function implicitGetRedirectUri(array $parameters): ?string |
|
72 | + protected function implicitGetRedirectUri(array $parameters): ? string |
|
73 | 73 | { |
74 | 74 | return $this->implicitReadStringValue($parameters, 'redirect_uri'); |
75 | 75 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * |
80 | 80 | * @return string[]|null |
81 | 81 | */ |
82 | - protected function implicitGetScope(array $parameters): ?array |
|
82 | + protected function implicitGetScope(array $parameters): ? array |
|
83 | 83 | { |
84 | 84 | $scope = $this->implicitReadStringValue($parameters, 'scope'); |
85 | 85 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * |
92 | 92 | * @return string|null |
93 | 93 | */ |
94 | - protected function implicitGetState(array $parameters): ?string |
|
94 | + protected function implicitGetState(array $parameters): ? string |
|
95 | 95 | { |
96 | 96 | return $this->implicitReadStringValue($parameters, 'state'); |
97 | 97 | } |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * |
157 | 157 | * @return null|string |
158 | 158 | */ |
159 | - private function implicitReadStringValue(array $parameters, string $name): ?string |
|
159 | + private function implicitReadStringValue(array $parameters, string $name): ? string |
|
160 | 160 | { |
161 | 161 | return array_key_exists($name, $parameters) === true && is_string($value = $parameters[$name]) === true ? |
162 | 162 | $value : null; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @return string|null |
58 | 58 | */ |
59 | - protected function refreshGetValue(array $parameters): ?string |
|
59 | + protected function refreshGetValue(array $parameters): ? string |
|
60 | 60 | { |
61 | 61 | return $this->refreshReadStringValue($parameters, 'refresh_token'); |
62 | 62 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * |
67 | 67 | * @return string[]|null |
68 | 68 | */ |
69 | - protected function refreshGetScope(array $parameters): ?array |
|
69 | + protected function refreshGetScope(array $parameters): ? array |
|
70 | 70 | { |
71 | 71 | $scope = $this->refreshReadStringValue($parameters, 'scope'); |
72 | 72 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * |
122 | 122 | * @return null|string |
123 | 123 | */ |
124 | - private function refreshReadStringValue(array $parameters, string $name): ?string |
|
124 | + private function refreshReadStringValue(array $parameters, string $name): ? string |
|
125 | 125 | { |
126 | 126 | return array_key_exists($name, $parameters) === true && is_string($value = $parameters[$name]) === true ? |
127 | 127 | $value : null; |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * |
58 | 58 | * @return string|null |
59 | 59 | */ |
60 | - protected function codeGetClientId(array $parameters): ?string |
|
60 | + protected function codeGetClientId(array $parameters): ? string |
|
61 | 61 | { |
62 | 62 | return $this->codeReadStringValue($parameters, 'client_id'); |
63 | 63 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * |
68 | 68 | * @return string|null |
69 | 69 | */ |
70 | - protected function codeGetRedirectUri(array $parameters): ?string |
|
70 | + protected function codeGetRedirectUri(array $parameters): ? string |
|
71 | 71 | { |
72 | 72 | return $this->codeReadStringValue($parameters, 'redirect_uri'); |
73 | 73 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * |
78 | 78 | * @return string[]|null |
79 | 79 | */ |
80 | - protected function codeGetScope(array $parameters): ?array |
|
80 | + protected function codeGetScope(array $parameters): ? array |
|
81 | 81 | { |
82 | 82 | $scope = $this->codeReadStringValue($parameters, 'scope'); |
83 | 83 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * |
90 | 90 | * @return string|null |
91 | 91 | */ |
92 | - protected function codeGetState(array $parameters): ?string |
|
92 | + protected function codeGetState(array $parameters): ? string |
|
93 | 93 | { |
94 | 94 | return $this->codeReadStringValue($parameters, 'state'); |
95 | 95 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * |
100 | 100 | * @return string|null |
101 | 101 | */ |
102 | - protected function codeGetCode(array $parameters): ?string |
|
102 | + protected function codeGetCode(array $parameters): ? string |
|
103 | 103 | { |
104 | 104 | return $this->codeReadStringValue($parameters, 'code'); |
105 | 105 | } |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | * |
210 | 210 | * @return null|string |
211 | 211 | */ |
212 | - private function codeReadStringValue(array $parameters, string $name): ?string |
|
212 | + private function codeReadStringValue(array $parameters, string $name): ? string |
|
213 | 213 | { |
214 | 214 | return array_key_exists($name, $parameters) === true && is_string($value = $parameters[$name]) === true ? |
215 | 215 | $value : null; |
@@ -120,7 +120,7 @@ |
||
120 | 120 | /** |
121 | 121 | * @return int|null |
122 | 122 | */ |
123 | - public function getMaxStateLength(): ?int |
|
123 | + public function getMaxStateLength(): ? int |
|
124 | 124 | { |
125 | 125 | return $this->maxStateLength; |
126 | 126 | } |
@@ -39,10 +39,10 @@ |
||
39 | 39 | /** |
40 | 40 | * @return string|null |
41 | 41 | */ |
42 | - public function getValue(): ?string; |
|
42 | + public function getValue(): ? string; |
|
43 | 43 | |
44 | 44 | /** |
45 | 45 | * @return string|null |
46 | 46 | */ |
47 | - public function getRefreshValue(): ?string; |
|
47 | + public function getRefreshValue(): ? string; |
|
48 | 48 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | /** |
35 | 35 | * @return string|null |
36 | 36 | */ |
37 | - public function getRedirectUriString(): ?string; |
|
37 | + public function getRedirectUriString(): ? string; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * @return string[] |