Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit fe0624f

Browse files
committed
reverted declined changes
1 parent 3e272f9 commit fe0624f

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

src/Facebook/Entities/AccessToken.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public static function getAccessTokenFromCode($code, $appId = null, $appSecret =
177177
{
178178
$params = array(
179179
'code' => $code,
180-
'redirect_uri' => ''
180+
'redirect_uri' => '',
181181
);
182182

183183
if ($machineId) {
@@ -202,7 +202,7 @@ public static function getCodeFromAccessToken($accessToken, $appId = null, $appS
202202

203203
$params = array(
204204
'access_token' => $accessToken,
205-
'redirect_uri' => ''
205+
'redirect_uri' => '',
206206
);
207207

208208
return static::requestCode($params, $appId, $appSecret);
@@ -220,7 +220,7 @@ public function extend($appId = null, $appSecret = null)
220220
{
221221
$params = array(
222222
'grant_type' => 'fb_exchange_token',
223-
'fb_exchange_token' => $this->accessToken
223+
'fb_exchange_token' => $this->accessToken,
224224
);
225225

226226
return static::requestAccessToken($params, $appId, $appSecret);

src/Facebook/FacebookRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ public function __construct(
194194

195195
$params = ($parameters ?: array());
196196
if ($session
197-
&& !isset($params['access_token'])) {
197+
&& ! isset($params['access_token'])) {
198198
$params['access_token'] = $session->getToken();
199199
}
200-
if (!isset($params['appsecret_proof'])
200+
if (! isset($params['appsecret_proof'])
201201
&& FacebookSession::useAppSecretProof()) {
202202
$params['appsecret_proof'] = $this->getAppSecretProof(
203203
$params['access_token']
@@ -249,7 +249,7 @@ public function execute()
249249

250250
static::$requestCount++;
251251

252-
$etagHit = (304 === $connection->getResponseHttpStatusCode());
252+
$etagHit = 304 === $connection->getResponseHttpStatusCode();
253253

254254
$headers = $connection->getResponseHeaders();
255255
$etagReceived = isset($headers['ETag']) ? $headers['ETag'] : null;

src/Facebook/FacebookRequestException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static function create($raw, $data, $statusCode)
8080
if (!isset($data['error']['code']) && isset($data['code'])) {
8181
$data = array('error' => $data);
8282
}
83-
$code = (isset($data['error']['code']) ? (int)$data['error']['code'] : null);
83+
$code = (isset($data['error']['code']) ? (int) $data['error']['code'] : null);
8484

8585
if (isset($data['error']['error_subcode'])) {
8686
switch ($data['error']['error_subcode']) {

src/Facebook/FacebookSignedRequestFromInputHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ abstract class FacebookSignedRequestFromInputHelper
5050
/**
5151
* @var string|null Random string to prevent CSRF.
5252
*/
53-
public $state;
53+
public $state = null;
5454

5555
/**
5656
* Initialize the helper and process available signed request data.

src/Facebook/HttpClients/FacebookCurl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class FacebookCurl
3333
{
3434

3535
/**
36-
* @var resource|null Curl resource instance
36+
* @var resource Curl resource instance
3737
*/
38-
protected $curl;
38+
protected $curl = null;
3939

4040
/**
4141
* Make a new curl reference instance

src/Facebook/HttpClients/FacebookCurlHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function openConnection($url, $method = 'GET', array $parameters = array(
177177
CURLOPT_HEADER => true, // Enable header processing
178178
CURLOPT_SSL_VERIFYHOST => 2,
179179
CURLOPT_SSL_VERIFYPEER => true,
180-
CURLOPT_CAINFO => __DIR__ . '/certs/DigiCertHighAssuranceEVRootCA.pem'
180+
CURLOPT_CAINFO => __DIR__ . '/certs/DigiCertHighAssuranceEVRootCA.pem',
181181
);
182182

183183
if ($method !== 'GET') {

src/Facebook/HttpClients/FacebookStreamHttpClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ public function send($url, $method = 'GET', array $parameters = array())
109109
'verify_peer' => true,
110110
'verify_peer_name' => true,
111111
'allow_self_signed' => true, // All root certificates are self-signed
112-
'cafile' => __DIR__ . '/certs/DigiCertHighAssuranceEVRootCA.pem'
113-
)
112+
'cafile' => __DIR__ . '/certs/DigiCertHighAssuranceEVRootCA.pem',
113+
),
114114
);
115115

116116
if ($parameters) {

0 commit comments

Comments
 (0)