Skip to content

Commit 16747c9

Browse files
committed
merge fix
1 parent efd5963 commit 16747c9

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

docs/reference/CanvasHelper.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The `FacebookCanvasHelper` is used to obtain an access token or signed request when working within the context of an [app canvas](https://developers.facebook.com/docs/games/canvas).
44

55
```php
6-
Facebook\Helper\CanvasHelper( Facebook\Application $facebookApp )
6+
Facebook\Helper\CanvasHelper( Facebook\Application $application )
77
```
88

99
## Usage

docs/reference/Facebook.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,14 +329,14 @@ $batchResponse = $fb->sendBatchRequest($requests);
329329

330330
## newBatchRequest()
331331
```php
332-
public Facebook\FacebookBatchRequest newBatchRequest(
332+
public Facebook\BatchRequest newBatchRequest(
333333
string|AccessToken|null $accessToken,
334334
string|null $graphVersion
335335
)
336336
```
337337

338-
Instantiates an empty `Facebook\FacebookBatchRequest`.
339-
To populate it use the [`Facebook\FacebookBatchRequest::add()`](FacebookBatchRequest.md#add) method.
338+
Instantiates an empty `Facebook\BatchRequest`.
339+
To populate it use the [`Facebook\BatchRequest::add()`](BatchRequest.md#add) method.
340340

341341
The `$accessToken` and `$graphVersion` arguments are the same as `get()` above.
342342
If any of the requests contained in the batch request does not have either the `$accessToken` or the `$graphVersion` set,

src/Authentication/OAuth2Client.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ public function debugToken($accessToken)
121121
/**
122122
* Generates an authorization URL to begin the process of authenticating a user.
123123
*
124-
* @param string $redirectUrl The callback URL to redirect to.
125-
* @param string $state The CSPRNG-generated CSRF value.
126-
* @param array $scope An array of permissions to request.
127-
* @param array $params An array of parameters to generate URL.
128-
* @param string $separator The separator to use in http_build_query().
124+
* @param string $redirectUrl the callback URL to redirect to
125+
* @param string $state the CSPRNG-generated CSRF value
126+
* @param array $scope an array of permissions to request
127+
* @param array $params an array of parameters to generate URL
128+
* @param string $separator the separator to use in http_build_query()
129129
*
130130
* @return string
131131
*/

src/BatchRequest.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,14 @@ public function __construct(Application $app = null, array $requests = [], $acce
6161
/**
6262
* Adds a new request to the array.
6363
*
64-
* @param Request|array $request
65-
* @param string|null|array $options Array of batch request options e.g. 'name', 'omit_response_on_success'.
64+
* @param array|Request $request
65+
* @param null|array|string $options Array of batch request options e.g. 'name', 'omit_response_on_success'.
6666
* If a string is given, it is the value of the 'name' option.
6767
*
68-
* @return BatchRequest
69-
*
7068
* @throws \InvalidArgumentException
7169
*
7270
* @return BatchRequest
71+
* @return BatchRequest
7372
*/
7473
public function add($request, $options = null)
7574
{
@@ -233,10 +232,10 @@ public function validateBatchRequestCount()
233232
/**
234233
* Converts a Request entity into an array that is batch-friendly.
235234
*
236-
* @param Request $request The request entity to convert.
237-
* @param string|null|array $options Array of batch request options e.g. 'name', 'omit_response_on_success'.
238-
* If a string is given, it is the value of the 'name' option.
239-
* @param string|null $attachedFiles Names of files associated with the request.
235+
* @param Request $request the request entity to convert
236+
* @param null|array|string $options Array of batch request options e.g. 'name', 'omit_response_on_success'.
237+
* If a string is given, it is the value of the 'name' option.
238+
* @param null|string $attachedFiles names of files associated with the request
240239
*
241240
* @return array
242241
*/

src/Facebook.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,10 @@ public function sendBatchRequest(array $requests, $accessToken = null, $graphVer
482482
/**
483483
* Instantiates an empty FacebookBatchRequest entity.
484484
*
485-
* @param AccessToken|string|null $accessToken The top-level access token. Requests with no access token
486-
* will fallback to this.
487-
* @param string|null $graphVersion The Graph API version to use.
485+
* @param null|AccessToken|string $accessToken The top-level access token. Requests with no access token
486+
* will fallback to this.
487+
* @param null|string $graphVersion the Graph API version to use
488+
*
488489
* @return FacebookBatchRequest
489490
*/
490491
public function newBatchRequest($accessToken = null, $graphVersion = null)

0 commit comments

Comments
 (0)