@@ -214,6 +214,7 @@ discard block |
||
| 214 | 214 | * Set the HTTP method for this request. |
| 215 | 215 | * |
| 216 | 216 | * @param string |
| 217 | + * @param string|null $method |
|
| 217 | 218 | */ |
| 218 | 219 | public function setMethod($method) |
| 219 | 220 | { |
@@ -250,6 +251,7 @@ discard block |
||
| 250 | 251 | * Set the endpoint for this request. |
| 251 | 252 | * |
| 252 | 253 | * @param string |
| 254 | + * @param string|null $endpoint |
|
| 253 | 255 | * |
| 254 | 256 | * @return FacebookRequest |
| 255 | 257 | * |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | * @param string $endpoint The endpoint to POST to. |
| 157 | 157 | * @param array $params The params to send with the request. |
| 158 | 158 | * |
| 159 | - * @return array |
|
| 159 | + * @return FacebookFile |
|
| 160 | 160 | */ |
| 161 | 161 | private function sendUploadRequest($endpoint, $params = []) |
| 162 | 162 | { |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | * Returns the URL to send the user in order to login to Facebook. |
| 119 | 119 | * |
| 120 | 120 | * @param string $redirectUrl The URL Facebook should redirect users to after login. |
| 121 | - * @param array $scope List of permissions to request during login. |
|
| 121 | + * @param string[] $scope List of permissions to request during login. |
|
| 122 | 122 | * @param string $separator The separator to use in http_build_query(). |
| 123 | 123 | * |
| 124 | 124 | * @return string |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | /** |
| 132 | 132 | * Returns the URL to send the user in order to log out of Facebook. |
| 133 | 133 | * |
| 134 | - * @param AccessToken|string $accessToken The access token that will be logged out. |
|
| 134 | + * @param string $accessToken The access token that will be logged out. |
|
| 135 | 135 | * @param string $next The url Facebook should redirect the user to after a successful logout. |
| 136 | 136 | * @param string $separator The separator to use in http_build_query(). |
| 137 | 137 | * |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | * Returns a property from the signed request data if available. |
| 91 | 91 | * |
| 92 | 92 | * @param string $key |
| 93 | - * @param mixed|null $default |
|
| 93 | + * @param integer $default |
|
| 94 | 94 | * |
| 95 | 95 | * @return mixed|null |
| 96 | 96 | */ |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * Remove params from a URL. |
| 35 | 35 | * |
| 36 | 36 | * @param string $url The URL to filter. |
| 37 | - * @param array $paramsToFilter The params to filter from the URL. |
|
| 37 | + * @param string[] $paramsToFilter The params to filter from the URL. |
|
| 38 | 38 | * |
| 39 | 39 | * @return string The URL with the params removed. |
| 40 | 40 | */ |
@@ -327,6 +327,9 @@ discard block |
||
| 327 | 327 | $this->assertEquals($expectedBatchParams, $params); |
| 328 | 328 | } |
| 329 | 329 | |
| 330 | + /** |
|
| 331 | + * @param string $expectedToken |
|
| 332 | + */ |
|
| 330 | 333 | private function assertRequestContainsAppAndToken(FacebookRequest $request, FacebookApp $expectedApp, $expectedToken) |
| 331 | 334 | { |
| 332 | 335 | $app = $request->getApp(); |
@@ -346,6 +349,9 @@ discard block |
||
| 346 | 349 | return $headers; |
| 347 | 350 | } |
| 348 | 351 | |
| 352 | + /** |
|
| 353 | + * @param integer $number |
|
| 354 | + */ |
|
| 349 | 355 | private function createAndAppendRequestsTo(FacebookBatchRequest $batchRequest, $number) |
| 350 | 356 | { |
| 351 | 357 | for ($i = 0; $i < $number; $i++) { |