Passed
Push — 1.10.x ( 51b3f0...0b3bd8 )
by Yannick
116:33 queued 61:35
created
facebook-php-sdk/src/Facebook/FacebookRedirectLoginHelper.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
       'client_id' => $this->appId,
100 100
       'redirect_uri' => $this->redirectUrl,
101 101
       'state' => $this->state,
102
-      'sdk' => 'php-sdk-' . FacebookRequest::VERSION,
102
+      'sdk' => 'php-sdk-'.FacebookRequest::VERSION,
103 103
       'scope' => implode(',', $scope)
104 104
     );
105 105
     
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
       $params['display'] = 'popup';
109 109
     }
110 110
     
111
-    return 'https://www.facebook.com/' . $version . '/dialog/oauth?' .
111
+    return 'https://www.facebook.com/'.$version.'/dialog/oauth?'.
112 112
       http_build_query($params, null, '&');
113 113
   }
114 114
 
@@ -129,11 +129,11 @@  discard block
 block discarded – undo
129 129
       'client_id' => $this->appId,
130 130
       'redirect_uri' => $this->redirectUrl,
131 131
       'state' => $this->state,
132
-      'sdk' => 'php-sdk-' . FacebookRequest::VERSION,
132
+      'sdk' => 'php-sdk-'.FacebookRequest::VERSION,
133 133
       'auth_type' => 'rerequest',
134 134
       'scope' => implode(',', $scope)
135 135
     );
136
-    return 'https://www.facebook.com/' . $version . '/dialog/oauth?' .
136
+    return 'https://www.facebook.com/'.$version.'/dialog/oauth?'.
137 137
       http_build_query($params, null, '&');
138 138
   }
139 139
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
       'next' => $next,
160 160
       'access_token' => $session->getToken()
161 161
     );
162
-    return 'https://www.facebook.com/logout.php?' . http_build_query($params, null, '&');
162
+    return 'https://www.facebook.com/logout.php?'.http_build_query($params, null, '&');
163 163
   }
164 164
 
165 165
   /**
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
         'Session not active, could not store state.', 720
235 235
       );
236 236
     }
237
-    $_SESSION[$this->sessionPrefix . 'state'] = $state;
237
+    $_SESSION[$this->sessionPrefix.'state'] = $state;
238 238
   }
239 239
 
240 240
   /**
@@ -255,8 +255,8 @@  discard block
 block discarded – undo
255 255
         'Session not active, could not load state.', 721
256 256
       );
257 257
     }
258
-    if (isset($_SESSION[$this->sessionPrefix . 'state'])) {
259
-      $this->state = $_SESSION[$this->sessionPrefix . 'state'];
258
+    if (isset($_SESSION[$this->sessionPrefix.'state'])) {
259
+      $this->state = $_SESSION[$this->sessionPrefix.'state'];
260 260
       return $this->state;
261 261
     }
262 262
     return null;
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
       if ($fp !== FALSE) {
294 294
         $buf = fread($fp, $bytes);
295 295
         fclose($fp);
296
-        if($buf !== FALSE) {
296
+        if ($buf !== FALSE) {
297 297
           return bin2hex($buf);
298 298
         }
299 299
       }
Please login to merge, or discard this patch.
main/auth/external_login/facebook-php-sdk/src/Facebook/FacebookResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
       $url = parse_url($this->responseData->paging->$direction);
190 190
       parse_str($url['query'], $params);
191 191
 
192
-      if (isset($params['type']) && strpos($this->request->getPath(), $params['type']) !== false){
192
+      if (isset($params['type']) && strpos($this->request->getPath(), $params['type']) !== false) {
193 193
         unset($params['type']);
194 194
       }
195 195
       return new FacebookRequest(
Please login to merge, or discard this patch.
facebook-php-sdk/src/Facebook/HttpClients/FacebookCurlHttpClient.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
       CURLOPT_HEADER         => true, // Enable header processing
178 178
       CURLOPT_SSL_VERIFYHOST => 2,
179 179
       CURLOPT_SSL_VERIFYPEER => true,
180
-      CURLOPT_CAINFO         => __DIR__ . '/certs/DigiCertHighAssuranceEVRootCA.pem',
180
+      CURLOPT_CAINFO         => __DIR__.'/certs/DigiCertHighAssuranceEVRootCA.pem',
181 181
     );
182 182
 
183 183
     if ($method !== "GET") {
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     $return = array();
237 237
 
238 238
     foreach ($this->requestHeaders as $key => $value) {
239
-      $return[] = $key . ': ' . $value;
239
+      $return[] = $key.': '.$value;
240 240
     }
241 241
 
242 242
     return $return;
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
     $headerSize = self::$facebookCurl->getinfo(CURLINFO_HEADER_SIZE);
301 301
     // This corrects a Curl bug where header size does not account
302 302
     // for additional Proxy headers.
303
-    if ( self::needsCurlProxyFix() ) {
303
+    if (self::needsCurlProxyFix()) {
304 304
       // Additional way to calculate the request body size.
305 305
       if (preg_match('/Content-Length: (\d+)/', $this->rawResponse, $m)) {
306 306
           $headerSize = mb_strlen($this->rawResponse) - $m[1];
Please login to merge, or discard this patch.
facebook-php-sdk/src/Facebook/HttpClients/FacebookGuzzleHttpClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,11 +108,11 @@
 block discarded – undo
108 108
       $options = array('body' => $parameters);
109 109
     }
110 110
 
111
-    $options['verify'] = __DIR__ . '/certs/DigiCertHighAssuranceEVRootCA.pem';
111
+    $options['verify'] = __DIR__.'/certs/DigiCertHighAssuranceEVRootCA.pem';
112 112
 
113 113
     $request = self::$guzzleClient->createRequest($method, $url, $options);
114 114
 
115
-    foreach($this->requestHeaders as $k => $v) {
115
+    foreach ($this->requestHeaders as $k => $v) {
116 116
       $request->setHeader($k, $v);
117 117
     }
118 118
 
Please login to merge, or discard this patch.
facebook-php-sdk/src/Facebook/HttpClients/FacebookStreamHttpClient.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         'verify_peer' => true,
110 110
         'verify_peer_name' => true,
111 111
         'allow_self_signed' => true, // All root certificates are self-signed
112
-        'cafile' => __DIR__ . '/certs/DigiCertHighAssuranceEVRootCA.pem',
112
+        'cafile' => __DIR__.'/certs/DigiCertHighAssuranceEVRootCA.pem',
113 113
       ),
114 114
     );
115 115
 
@@ -143,8 +143,8 @@  discard block
 block discarded – undo
143 143
   public function compileHeader()
144 144
   {
145 145
     $header = [];
146
-    foreach($this->requestHeaders as $k => $v) {
147
-      $header[] = $k . ': ' . $v;
146
+    foreach ($this->requestHeaders as $k => $v) {
147
+      $header[] = $k.': '.$v;
148 148
     }
149 149
 
150 150
     return implode("\r\n", $header);
Please login to merge, or discard this patch.
main/auth/external_login/facebook-php-sdk/src/Facebook/FacebookSession.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@
 block discarded – undo
287 287
     $targetAppId = static::_getTargetAppId($appId);
288 288
     $targetAppSecret = static::_getTargetAppSecret($appSecret);
289 289
     return new FacebookSession(
290
-      $targetAppId . '|' . $targetAppSecret
290
+      $targetAppId.'|'.$targetAppSecret
291 291
     );
292 292
   }
293 293
 
Please login to merge, or discard this patch.
auth/external_login/facebook-php-sdk/src/Facebook/Entities/AccessToken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@
 block discarded – undo
252 252
         $expiresAt = isset($data['expires']) ? time() + $data['expires'] : 0;
253 253
         return new static($data['access_token'], $expiresAt);
254 254
       }
255
-    } elseif($data instanceof \stdClass) {
255
+    } elseif ($data instanceof \stdClass) {
256 256
       if (isset($data->access_token)) {
257 257
         $expiresAt = isset($data->expires_in) ? time() + $data->expires_in : 0;
258 258
         $machineId = isset($data->machine_id) ? (string) $data->machine_id : null;
Please login to merge, or discard this patch.
main/auth/external_login/facebook-php-sdk/src/Facebook/FacebookRequest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
    */
214 214
   protected function getRequestURL()
215 215
   {
216
-    return static::BASE_GRAPH_URL . '/' . $this->version . $this->path;
216
+    return static::BASE_GRAPH_URL.'/'.$this->version.$this->path;
217 217
   }
218 218
 
219 219
   /**
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     }
236 236
 
237 237
     $connection = self::getHttpClientHandler();
238
-    $connection->addRequestHeader('User-Agent', 'fb-php-' . self::VERSION);
238
+    $connection->addRequestHeader('User-Agent', 'fb-php-'.self::VERSION);
239 239
     $connection->addRequestHeader('Accept-Encoding', '*'); // Support all available encodings.
240 240
 
241 241
     // ETag
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
     }
299 299
 
300 300
     if (strpos($url, '?') === false) {
301
-      return $url . '?' . http_build_query($params, null, '&');
301
+      return $url.'?'.http_build_query($params, null, '&');
302 302
     }
303 303
 
304 304
     list($path, $query_string) = explode('?', $url, 2);
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
     // Favor params from the original URL over $params
308 308
     $params = array_merge($params, $query_array);
309 309
 
310
-    return $path . '?' . http_build_query($params, null, '&');
310
+    return $path.'?'.http_build_query($params, null, '&');
311 311
   }
312 312
 
313 313
 }
Please login to merge, or discard this patch.
main/auth/external_login/facebook-php-sdk/autoload.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@  discard block
 block discarded – undo
40 40
  * @param string $class The fully-qualified class name.
41 41
  * @return void
42 42
  */
43
-spl_autoload_register(function ($class)
43
+spl_autoload_register(function($class)
44 44
 {
45 45
   // project-specific namespace prefix
46 46
   $prefix = 'Facebook\\';
47 47
 
48 48
   // base directory for the namespace prefix
49
-  $base_dir = defined('FACEBOOK_SDK_V4_SRC_DIR') ? FACEBOOK_SDK_V4_SRC_DIR : __DIR__ . '/src/Facebook/';
49
+  $base_dir = defined('FACEBOOK_SDK_V4_SRC_DIR') ? FACEBOOK_SDK_V4_SRC_DIR : __DIR__.'/src/Facebook/';
50 50
 
51 51
   // does the class use the namespace prefix?
52 52
   $len = strlen($prefix);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
   // replace the namespace prefix with the base directory, replace namespace
62 62
   // separators with directory separators in the relative class name, append
63 63
   // with .php
64
-  $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
64
+  $file = $base_dir.str_replace('\\', '/', $relative_class).'.php';
65 65
 
66 66
   // if the file exists, require it
67 67
   if (file_exists($file)) {
Please login to merge, or discard this patch.