x Sorry, these patches are not available anymore due to data migration. Please run a fresh inspection.
Completed
Pull Request — master (#554)
by
unknown
04:12
created
src/Facebook/HttpClients/FacebookStreamHttpClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                 'verify_peer' => true,
59 59
                 'verify_peer_name' => true,
60 60
                 'allow_self_signed' => true, // All root certificates are self-signed
61
-                'cafile' => __DIR__ . '/certs/DigiCertHighAssuranceEVRootCA.pem',
61
+                'cafile' => __DIR__.'/certs/DigiCertHighAssuranceEVRootCA.pem',
62 62
             ],
63 63
         ];
64 64
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     {
87 87
         $header = [];
88 88
         foreach ($headers as $k => $v) {
89
-            $header[] = $k . ': ' . $v;
89
+            $header[] = $k.': '.$v;
90 90
         }
91 91
 
92 92
         return implode("\r\n", $header);
Please login to merge, or discard this patch.
src/Facebook/PersistentData/FacebookSessionPersistentDataHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function get($key)
61 61
     {
62
-        if (isset($_SESSION[$this->sessionPrefix . $key])) {
63
-            return $_SESSION[$this->sessionPrefix . $key];
62
+        if (isset($_SESSION[$this->sessionPrefix.$key])) {
63
+            return $_SESSION[$this->sessionPrefix.$key];
64 64
         }
65 65
 
66 66
         return null;
@@ -71,6 +71,6 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function set($key, $value)
73 73
     {
74
-        $_SESSION[$this->sessionPrefix . $key] = $value;
74
+        $_SESSION[$this->sessionPrefix.$key] = $value;
75 75
     }
76 76
 }
Please login to merge, or discard this patch.
src/Facebook/Helpers/FacebookSignedRequestFromInputHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,8 +157,8 @@
 block discarded – undo
157 157
      */
158 158
     public function getRawSignedRequestFromCookie()
159 159
     {
160
-        if (isset($_COOKIE['fbsr_' . $this->app->getId()])) {
161
-            return $_COOKIE['fbsr_' . $this->app->getId()];
160
+        if (isset($_COOKIE['fbsr_'.$this->app->getId()])) {
161
+            return $_COOKIE['fbsr_'.$this->app->getId()];
162 162
         }
163 163
 
164 164
         return null;
Please login to merge, or discard this patch.
src/Facebook/Helpers/FacebookRedirectLoginHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
             'access_token' => $accessToken->getValue(),
169 169
         ];
170 170
 
171
-        return 'https://www.facebook.com/logout.php?' . http_build_query($params, null, $separator);
171
+        return 'https://www.facebook.com/logout.php?'.http_build_query($params, null, $separator);
172 172
     }
173 173
 
174 174
     /**
Please login to merge, or discard this patch.
src/Facebook/SignedRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
         $hashedSig = $this->hashSignature($encodedPayload);
140 140
         $encodedSig = $this->base64UrlEncode($hashedSig);
141 141
 
142
-        return $encodedSig . '.' . $encodedPayload;
142
+        return $encodedSig.'.'.$encodedPayload;
143 143
     }
144 144
 
145 145
     /**
Please login to merge, or discard this patch.
src/Facebook/FileUpload/FacebookFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,13 +85,13 @@
 block discarded – undo
85 85
     public function open()
86 86
     {
87 87
         if (!$this->isRemoteFile($this->path) && !is_readable($this->path)) {
88
-            throw new FacebookSDKException('Failed to create FacebookFile entity. Unable to read resource: ' . $this->path . '.');
88
+            throw new FacebookSDKException('Failed to create FacebookFile entity. Unable to read resource: '.$this->path.'.');
89 89
         }
90 90
 
91 91
         $this->stream = fopen($this->path, 'r');
92 92
 
93 93
         if (!$this->stream) {
94
-            throw new FacebookSDKException('Failed to create FacebookFile entity. Unable to open resource: ' . $this->path . '.');
94
+            throw new FacebookSDKException('Failed to create FacebookFile entity. Unable to open resource: '.$this->path.'.');
95 95
         }
96 96
     }
97 97
 
Please login to merge, or discard this patch.
src/Facebook/PseudoRandomString/OpenSslPseudoRandomStringGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     public function __construct()
41 41
     {
42 42
         if (!function_exists('openssl_random_pseudo_bytes')) {
43
-            throw new FacebookSDKException(static::ERROR_MESSAGE . 'The function openssl_random_pseudo_bytes() does not exist.');
43
+            throw new FacebookSDKException(static::ERROR_MESSAGE.'The function openssl_random_pseudo_bytes() does not exist.');
44 44
         }
45 45
     }
46 46
 
@@ -55,11 +55,11 @@  discard block
 block discarded – undo
55 55
         $binaryString = openssl_random_pseudo_bytes($length, $wasCryptographicallyStrong);
56 56
 
57 57
         if ($binaryString === false) {
58
-            throw new FacebookSDKException(static::ERROR_MESSAGE . 'openssl_random_pseudo_bytes() returned an unknown error.');
58
+            throw new FacebookSDKException(static::ERROR_MESSAGE.'openssl_random_pseudo_bytes() returned an unknown error.');
59 59
         }
60 60
 
61 61
         if ($wasCryptographicallyStrong !== true) {
62
-            throw new FacebookSDKException(static::ERROR_MESSAGE . 'openssl_random_pseudo_bytes() returned a pseudo-random string but it was not cryptographically secure and cannot be used.');
62
+            throw new FacebookSDKException(static::ERROR_MESSAGE.'openssl_random_pseudo_bytes() returned a pseudo-random string but it was not cryptographically secure and cannot be used.');
63 63
         }
64 64
 
65 65
         return $this->binToHex($binaryString, $length);
Please login to merge, or discard this patch.
src/Facebook/PseudoRandomString/McryptPseudoRandomStringGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     {
42 42
         if (!function_exists('mcrypt_create_iv')) {
43 43
             throw new FacebookSDKException(
44
-                static::ERROR_MESSAGE .
44
+                static::ERROR_MESSAGE.
45 45
                 'The function mcrypt_create_iv() does not exist.'
46 46
             );
47 47
         }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         if ($binaryString === false) {
60 60
             throw new FacebookSDKException(
61
-                static::ERROR_MESSAGE .
61
+                static::ERROR_MESSAGE.
62 62
                 'mcrypt_create_iv() returned an error.'
63 63
             );
64 64
         }
Please login to merge, or discard this patch.
src/Facebook/PseudoRandomString/UrandomPseudoRandomStringGenerator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,14 +42,14 @@  discard block
 block discarded – undo
42 42
     {
43 43
         if (ini_get('open_basedir')) {
44 44
             throw new FacebookSDKException(
45
-                static::ERROR_MESSAGE .
45
+                static::ERROR_MESSAGE.
46 46
                 'There is an open_basedir constraint that prevents access to /dev/urandom.'
47 47
             );
48 48
         }
49 49
 
50 50
         if (!is_readable('/dev/urandom')) {
51 51
             throw new FacebookSDKException(
52
-                static::ERROR_MESSAGE .
52
+                static::ERROR_MESSAGE.
53 53
                 'Unable to read from /dev/urandom.'
54 54
             );
55 55
         }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $stream = fopen('/dev/urandom', 'rb');
66 66
         if (!is_resource($stream)) {
67 67
             throw new FacebookSDKException(
68
-                static::ERROR_MESSAGE .
68
+                static::ERROR_MESSAGE.
69 69
                 'Unable to open stream to /dev/urandom.'
70 70
             );
71 71
         }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
         if (!$binaryString) {
81 81
             throw new FacebookSDKException(
82
-                static::ERROR_MESSAGE .
82
+                static::ERROR_MESSAGE.
83 83
                 'Stream to /dev/urandom returned no data.'
84 84
             );
85 85
         }
Please login to merge, or discard this patch.