@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | /** |
| 142 | - * @param mixed $param |
|
| 142 | + * @param string|null $param |
|
| 143 | 143 | * @return boolean |
| 144 | 144 | */ |
| 145 | 145 | private function isStringOrNull($param) |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | /** |
| 151 | - * @param mixed $param |
|
| 151 | + * @param string $param |
|
| 152 | 152 | * @return boolean |
| 153 | 153 | */ |
| 154 | 154 | private function isStringNotEmpty($param) |
@@ -179,6 +179,9 @@ |
||
| 179 | 179 | return $emptyPathUri; |
| 180 | 180 | } |
| 181 | 181 | |
| 182 | + /** |
|
| 183 | + * @return string |
|
| 184 | + */ |
|
| 182 | 185 | private static function getRelativePath(UriInterface $base, UriInterface $target) |
| 183 | 186 | { |
| 184 | 187 | $sourceSegments = explode('/', $base->getPath()); |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | * @param array $options An array of options to set on this provider. |
| 147 | 147 | * Options include `clientId`, `clientSecret`, `redirectUri`, and `state`. |
| 148 | 148 | * Individual providers may introduce more options, as needed. |
| 149 | - * @return array The options to pass to the HttpClient constructor |
|
| 149 | + * @return string[] The options to pass to the HttpClient constructor |
|
| 150 | 150 | */ |
| 151 | 151 | protected function getAllowedClientOptions(array $options) |
| 152 | 152 | { |
@@ -564,7 +564,7 @@ discard block |
||
| 564 | 564 | * |
| 565 | 565 | * @param string $method |
| 566 | 566 | * @param string $url |
| 567 | - * @param AccessTokenInterface|string $token |
|
| 567 | + * @param AccessToken $token |
|
| 568 | 568 | * @param array $options Any of "headers", "body", and "protocolVersion". |
| 569 | 569 | * @return RequestInterface |
| 570 | 570 | */ |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | * @param string $title Collection's title |
| 122 | 122 | * @param string $description Collection's description |
| 123 | 123 | * @param boolean $private Whether to make this collection private |
| 124 | - * @return Photo |
|
| 124 | + * @return Collection |
|
| 125 | 125 | */ |
| 126 | 126 | public static function create($title, $description = '', $private = false) |
| 127 | 127 | { |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | /** |
| 88 | 88 | * Refresh an expired token and generate a new AccessToken object. |
| 89 | 89 | * |
| 90 | - * @return \League\OAuth2\Client\Token\AccessToken|null |
|
| 90 | + * @return null|\League\OAuth2\Client\Token\AccessTokenInterface |
|
| 91 | 91 | */ |
| 92 | 92 | public function refreshToken() |
| 93 | 93 | { |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use GuzzleHttp\Psr7\Uri; |
| 10 | 10 | use \League\OAuth2\Client\Token\AccessToken; |
| 11 | 11 | use Unsplash\OAuth2\Client\Provider\Unsplash; |
| 12 | - |
|
| 13 | 12 | use GuzzleHttp\Psr7\Request; |
| 14 | 13 | |
| 15 | 14 | /** |