Completed
Push — master ( 2c42fb...7b39ac )
by Fosco
05:29
created
src/Facebook/FacebookRequest.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -214,6 +214,7 @@  discard block
 block discarded – undo
214 214
      * Set the HTTP method for this request.
215 215
      *
216 216
      * @param string
217
+     * @param string|null $method
217 218
      *
218 219
      * @return FacebookRequest
219 220
      */
@@ -252,6 +253,7 @@  discard block
 block discarded – undo
252 253
      * Set the endpoint for this request.
253 254
      *
254 255
      * @param string
256
+     * @param string|null $endpoint
255 257
      *
256 258
      * @return FacebookRequest
257 259
      *
Please login to merge, or discard this patch.
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright 2014 Facebook, Inc.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
3
+     * Copyright 2014 Facebook, Inc.
4
+     *
5
+     * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+     * use, copy, modify, and distribute this software in source code or binary
7
+     * form for use in connection with the web services and APIs provided by
8
+     * Facebook.
9
+     *
10
+     * As with any software that integrates with the Facebook platform, your use
11
+     * of this software is subject to the Facebook Developer Principles and
12
+     * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+     * shall be included in all copies or substantial portions of the software.
14
+     *
15
+     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+     * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+     * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+     * DEALINGS IN THE SOFTWARE.
22
+     *
23
+     */
24 24
 namespace Facebook\Helpers;
25 25
 
26 26
 use Facebook\Authentication\AccessToken;
Please login to merge, or discard this patch.
src/Facebook/FacebookResponse.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@
 block discarded – undo
213 213
     /**
214 214
      * Returns the exception that was thrown for this request.
215 215
      *
216
-     * @return FacebookSDKException|null
216
+     * @return FacebookSDKException
217 217
      */
218 218
     public function getThrownException()
219 219
     {
Please login to merge, or discard this patch.
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright 2014 Facebook, Inc.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
3
+     * Copyright 2014 Facebook, Inc.
4
+     *
5
+     * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+     * use, copy, modify, and distribute this software in source code or binary
7
+     * form for use in connection with the web services and APIs provided by
8
+     * Facebook.
9
+     *
10
+     * As with any software that integrates with the Facebook platform, your use
11
+     * of this software is subject to the Facebook Developer Principles and
12
+     * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+     * shall be included in all copies or substantial portions of the software.
14
+     *
15
+     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+     * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+     * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+     * DEALINGS IN THE SOFTWARE.
22
+     *
23
+     */
24 24
 namespace Facebook\Helpers;
25 25
 
26 26
 use Facebook\Authentication\AccessToken;
Please login to merge, or discard this patch.
src/Facebook/FileUpload/FacebookResumableUploader.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
      * @param string $endpoint The endpoint to POST to.
157 157
      * @param array $params The params to send with the request.
158 158
      *
159
-     * @return array
159
+     * @return FacebookFile
160 160
      */
161 161
     private function sendUploadRequest($endpoint, $params = [])
162 162
     {
Please login to merge, or discard this patch.
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright 2014 Facebook, Inc.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
3
+     * Copyright 2014 Facebook, Inc.
4
+     *
5
+     * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+     * use, copy, modify, and distribute this software in source code or binary
7
+     * form for use in connection with the web services and APIs provided by
8
+     * Facebook.
9
+     *
10
+     * As with any software that integrates with the Facebook platform, your use
11
+     * of this software is subject to the Facebook Developer Principles and
12
+     * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+     * shall be included in all copies or substantial portions of the software.
14
+     *
15
+     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+     * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+     * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+     * DEALINGS IN THE SOFTWARE.
22
+     *
23
+     */
24 24
 namespace Facebook\Helpers;
25 25
 
26 26
 use Facebook\Authentication\AccessToken;
Please login to merge, or discard this patch.
src/Facebook/HttpClients/FacebookGuzzleHttpClient.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,6 @@
 block discarded – undo
25 25
 
26 26
 use Facebook\Http\GraphRawResponse;
27 27
 use Facebook\Exceptions\FacebookSDKException;
28
-
29 28
 use GuzzleHttp\Client;
30 29
 use GuzzleHttp\Message\ResponseInterface;
31 30
 use GuzzleHttp\Ring\Exception\RingException;
Please login to merge, or discard this patch.
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright 2014 Facebook, Inc.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
3
+     * Copyright 2014 Facebook, Inc.
4
+     *
5
+     * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+     * use, copy, modify, and distribute this software in source code or binary
7
+     * form for use in connection with the web services and APIs provided by
8
+     * Facebook.
9
+     *
10
+     * As with any software that integrates with the Facebook platform, your use
11
+     * of this software is subject to the Facebook Developer Principles and
12
+     * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+     * shall be included in all copies or substantial portions of the software.
14
+     *
15
+     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+     * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+     * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+     * DEALINGS IN THE SOFTWARE.
22
+     *
23
+     */
24 24
 namespace Facebook\Helpers;
25 25
 
26 26
 use Facebook\Authentication\AccessToken;
Please login to merge, or discard this patch.
src/Facebook/SignedRequest.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * Returns the raw signed request data.
71 71
      *
72
-     * @return string|null
72
+     * @return string
73 73
      */
74 74
     public function getRawSignedRequest()
75 75
     {
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      * Returns a property from the signed request data if available.
91 91
      *
92 92
      * @param string     $key
93
-     * @param mixed|null $default
93
+     * @param integer $default
94 94
      *
95 95
      * @return mixed|null
96 96
      */
Please login to merge, or discard this patch.
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright 2014 Facebook, Inc.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
3
+     * Copyright 2014 Facebook, Inc.
4
+     *
5
+     * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+     * use, copy, modify, and distribute this software in source code or binary
7
+     * form for use in connection with the web services and APIs provided by
8
+     * Facebook.
9
+     *
10
+     * As with any software that integrates with the Facebook platform, your use
11
+     * of this software is subject to the Facebook Developer Principles and
12
+     * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+     * shall be included in all copies or substantial portions of the software.
14
+     *
15
+     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+     * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+     * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+     * DEALINGS IN THE SOFTWARE.
22
+     *
23
+     */
24 24
 namespace Facebook\Helpers;
25 25
 
26 26
 use Facebook\Authentication\AccessToken;
Please login to merge, or discard this patch.
src/Facebook/Url/FacebookUrlManipulator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      * Remove params from a URL.
35 35
      *
36 36
      * @param string $url            The URL to filter.
37
-     * @param array  $paramsToFilter The params to filter from the URL.
37
+     * @param string[]  $paramsToFilter The params to filter from the URL.
38 38
      *
39 39
      * @return string The URL with the params removed.
40 40
      */
Please login to merge, or discard this patch.
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright 2014 Facebook, Inc.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
3
+     * Copyright 2014 Facebook, Inc.
4
+     *
5
+     * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+     * use, copy, modify, and distribute this software in source code or binary
7
+     * form for use in connection with the web services and APIs provided by
8
+     * Facebook.
9
+     *
10
+     * As with any software that integrates with the Facebook platform, your use
11
+     * of this software is subject to the Facebook Developer Principles and
12
+     * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+     * shall be included in all copies or substantial portions of the software.
14
+     *
15
+     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+     * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+     * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+     * DEALINGS IN THE SOFTWARE.
22
+     *
23
+     */
24 24
 namespace Facebook\Helpers;
25 25
 
26 26
 use Facebook\Authentication\AccessToken;
Please login to merge, or discard this patch.
src/Facebook/Http/GraphRawResponse.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     public function __construct($headers, $body, $httpStatusCode = null)
56 56
     {
57 57
         if (is_numeric($httpStatusCode)) {
58
-            $this->httpResponseCode = (int)$httpStatusCode;
58
+            $this->httpResponseCode = (int) $httpStatusCode;
59 59
         }
60 60
 
61 61
         if (is_array($headers)) {
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     public function setHttpResponseCodeFromHeader($rawResponseHeader)
106 106
     {
107 107
         preg_match('|HTTP/\d\.\d\s+(\d+)\s+.*|', $rawResponseHeader, $match);
108
-        $this->httpResponseCode = (int)$match[1];
108
+        $this->httpResponseCode = (int) $match[1];
109 109
     }
110 110
 
111 111
     /**
Please login to merge, or discard this patch.
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright 2014 Facebook, Inc.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
3
+     * Copyright 2014 Facebook, Inc.
4
+     *
5
+     * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+     * use, copy, modify, and distribute this software in source code or binary
7
+     * form for use in connection with the web services and APIs provided by
8
+     * Facebook.
9
+     *
10
+     * As with any software that integrates with the Facebook platform, your use
11
+     * of this software is subject to the Facebook Developer Principles and
12
+     * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+     * shall be included in all copies or substantial portions of the software.
14
+     *
15
+     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+     * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+     * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+     * DEALINGS IN THE SOFTWARE.
22
+     *
23
+     */
24 24
 namespace Facebook\Helpers;
25 25
 
26 26
 use Facebook\Authentication\AccessToken;
Please login to merge, or discard this patch.
src/Facebook/Url/FacebookUrlDetectionHandler.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             return $this->protocolWithActiveSsl($protocol);
67 67
         }
68 68
 
69
-        return (string)$this->getServerVar('SERVER_PORT') === '443';
69
+        return (string) $this->getServerVar('SERVER_PORT') === '443';
70 70
     }
71 71
 
72 72
     /**
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     protected function protocolWithActiveSsl($protocol)
80 80
     {
81
-        $protocol = strtolower((string)$protocol);
81
+        $protocol = strtolower((string) $protocol);
82 82
 
83 83
         return in_array($protocol, ['on', '1', 'https', 'ssl'], true);
84 84
     }
@@ -126,15 +126,15 @@  discard block
 block discarded – undo
126 126
         // Check for proxy first
127 127
         $port = $this->getHeader('X_FORWARDED_PORT');
128 128
         if ($port) {
129
-            return (string)$port;
129
+            return (string) $port;
130 130
         }
131 131
 
132
-        $protocol = (string)$this->getHeader('X_FORWARDED_PROTO');
132
+        $protocol = (string) $this->getHeader('X_FORWARDED_PROTO');
133 133
         if ($protocol === 'https') {
134 134
             return '443';
135 135
         }
136 136
 
137
-        return (string)$this->getServerVar('SERVER_PORT');
137
+        return (string) $this->getServerVar('SERVER_PORT');
138 138
     }
139 139
 
140 140
     /**
Please login to merge, or discard this patch.
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright 2014 Facebook, Inc.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
3
+     * Copyright 2014 Facebook, Inc.
4
+     *
5
+     * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+     * use, copy, modify, and distribute this software in source code or binary
7
+     * form for use in connection with the web services and APIs provided by
8
+     * Facebook.
9
+     *
10
+     * As with any software that integrates with the Facebook platform, your use
11
+     * of this software is subject to the Facebook Developer Principles and
12
+     * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+     * shall be included in all copies or substantial portions of the software.
14
+     *
15
+     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+     * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+     * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+     * DEALINGS IN THE SOFTWARE.
22
+     *
23
+     */
24 24
 namespace Facebook\Helpers;
25 25
 
26 26
 use Facebook\Authentication\AccessToken;
Please login to merge, or discard this patch.
src/Facebook/GraphNodes/Collection.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
      */
129 129
     public function asArray()
130 130
     {
131
-        return array_map(function ($value) {
131
+        return array_map(function($value) {
132 132
             return $value instanceof Collection ? $value->asArray() : $value;
133 133
         }, $this->items);
134 134
     }
Please login to merge, or discard this patch.
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright 2014 Facebook, Inc.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
3
+     * Copyright 2014 Facebook, Inc.
4
+     *
5
+     * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+     * use, copy, modify, and distribute this software in source code or binary
7
+     * form for use in connection with the web services and APIs provided by
8
+     * Facebook.
9
+     *
10
+     * As with any software that integrates with the Facebook platform, your use
11
+     * of this software is subject to the Facebook Developer Principles and
12
+     * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+     * shall be included in all copies or substantial portions of the software.
14
+     *
15
+     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+     * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+     * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+     * DEALINGS IN THE SOFTWARE.
22
+     *
23
+     */
24 24
 namespace Facebook\Helpers;
25 25
 
26 26
 use Facebook\Authentication\AccessToken;
Please login to merge, or discard this patch.