@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * Return the extra attribute. |
| 42 | 42 | * |
| 43 | 43 | * @param string $name |
| 44 | - * @param null $default |
|
| 44 | + * @param string $default |
|
| 45 | 45 | * |
| 46 | 46 | * @return mixed |
| 47 | 47 | */ |
@@ -141,7 +141,7 @@ |
||
| 141 | 141 | /** |
| 142 | 142 | * Redirect the user of the application to the provider's authentication screen. |
| 143 | 143 | * |
| 144 | - * @return \Illuminate\Http\RedirectResponse |
|
| 144 | + * @return RedirectResponse |
|
| 145 | 145 | */ |
| 146 | 146 | public function redirect() |
| 147 | 147 | { |
@@ -399,7 +399,7 @@ |
||
| 399 | 399 | } |
| 400 | 400 | |
| 401 | 401 | foreach (explode('.', $key) as $segment) { |
| 402 | - if (! is_array($array) || ! array_key_exists($segment, $array)) { |
|
| 402 | + if (!is_array($array) || !array_key_exists($segment, $array)) { |
|
| 403 | 403 | return $default; |
| 404 | 404 | } |
| 405 | 405 | |
@@ -92,6 +92,7 @@ |
||
| 92 | 92 | |
| 93 | 93 | /** |
| 94 | 94 | * {@inheritdoc} |
| 95 | + * @param \Psr\Http\Message\StreamInterface $body |
|
| 95 | 96 | */ |
| 96 | 97 | protected function parseAccessToken($body) |
| 97 | 98 | { |
@@ -160,7 +160,7 @@ |
||
| 160 | 160 | /** |
| 161 | 161 | * Remove the fucking callback parentheses. |
| 162 | 162 | * |
| 163 | - * @param mixed $response |
|
| 163 | + * @param string $response |
|
| 164 | 164 | * |
| 165 | 165 | * @return string |
| 166 | 166 | */ |
@@ -57,6 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | 59 | * {@inheritdoc}. |
| 60 | + * @param string $state |
|
| 60 | 61 | */ |
| 61 | 62 | protected function buildAuthUrlFromBase($url, $state) |
| 62 | 63 | { |
@@ -145,6 +146,7 @@ discard block |
||
| 145 | 146 | |
| 146 | 147 | /** |
| 147 | 148 | * {@inheritdoc}. |
| 149 | + * @param string $body |
|
| 148 | 150 | */ |
| 149 | 151 | protected function parseAccessToken($body) |
| 150 | 152 | { |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | /** |
| 92 | 92 | * Set the token on the user. |
| 93 | 93 | * |
| 94 | - * @param string $token |
|
| 94 | + * @param AccessTokenInterface $token |
|
| 95 | 95 | * |
| 96 | 96 | * @return $this |
| 97 | 97 | */ |
@@ -1,14 +1,14 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * DoubanProvider.php |
|
| 4 | - * |
|
| 5 | - * This file is part of the socialite. |
|
| 6 | - * |
|
| 7 | - * (c) overtrue <[email protected]> |
|
| 8 | - * |
|
| 9 | - * This source file is subject to the MIT license that is bundled |
|
| 10 | - * with this source code in the file LICENSE. |
|
| 11 | - */ |
|
| 3 | + * DoubanProvider.php |
|
| 4 | + * |
|
| 5 | + * This file is part of the socialite. |
|
| 6 | + * |
|
| 7 | + * (c) overtrue <[email protected]> |
|
| 8 | + * |
|
| 9 | + * This source file is subject to the MIT license that is bundled |
|
| 10 | + * with this source code in the file LICENSE. |
|
| 11 | + */ |
|
| 12 | 12 | |
| 13 | 13 | namespace Overtrue\Socialite\Providers; |
| 14 | 14 | |