@@ -194,13 +194,13 @@ public function __construct(
194194
195195 $ params = ($ parameters ?: array ());
196196 if ($ session
197- && !isset ($ params [" access_token " ])) {
198- $ params [" access_token " ] = $ session ->getToken ();
197+ && !isset ($ params [' access_token ' ])) {
198+ $ params [' access_token ' ] = $ session ->getToken ();
199199 }
200- if (FacebookSession:: useAppSecretProof ( )
201- && ! isset ( $ params [ " appsecret_proof " ] )) {
202- $ params [" appsecret_proof " ] = $ this ->getAppSecretProof (
203- $ params [" access_token " ]
200+ if (! isset ( $ params [ ' appsecret_proof ' ] )
201+ && FacebookSession:: useAppSecretProof ( )) {
202+ $ params [' appsecret_proof ' ] = $ this ->getAppSecretProof (
203+ $ params [' access_token ' ]
204204 );
205205 }
206206 $ this ->params = $ params ;
@@ -229,7 +229,7 @@ public function execute()
229229 $ url = $ this ->getRequestURL ();
230230 $ params = $ this ->getParameters ();
231231
232- if ($ this ->method === " GET " ) {
232+ if ($ this ->method === ' GET ' ) {
233233 $ url = self ::appendParamsToUrl ($ url , $ params );
234234 $ params = array ();
235235 }
@@ -239,7 +239,7 @@ public function execute()
239239 $ connection ->addRequestHeader ('Accept-Encoding ' , '* ' ); // Support all available encodings.
240240
241241 // ETag
242- if (isset ( $ this ->etag ) ) {
242+ if (null !== $ this ->etag ) {
243243 $ connection ->addRequestHeader ('If-None-Match ' , $ this ->etag );
244244 }
245245
@@ -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 ;
@@ -291,7 +291,7 @@ public function getAppSecretProof($token)
291291 *
292292 * @return string
293293 */
294- public static function appendParamsToUrl ($ url , $ params = array ())
294+ public static function appendParamsToUrl ($ url , array $ params = array ())
295295 {
296296 if (!$ params ) {
297297 return $ url ;
0 commit comments