Completed
Push — master ( bb1e61...4a57c2 )
by Fosco
09:15
created
src/Facebook/Http/GraphRawResponse.php 1 patch
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.
src/Facebook/Url/FacebookUrlDetectionHandler.php 1 patch
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.
src/Facebook/GraphNodes/Collection.php 1 patch
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.
src/Facebook/GraphNodes/GraphNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
     {
85 85
         $items = $this->asArray();
86 86
 
87
-        return array_map(function ($v) {
87
+        return array_map(function($v) {
88 88
             if ($v instanceof \DateTime) {
89 89
                 return $v->format(\DateTime::ISO8601);
90 90
             }
Please login to merge, or discard this patch.
src/Facebook/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
  *
43 43
  * @return void
44 44
  */
45
-spl_autoload_register(function ($class) {
45
+spl_autoload_register(function($class) {
46 46
     // project-specific namespace prefix
47 47
     $prefix = 'Facebook\\';
48 48
 
Please login to merge, or discard this patch.
src/Facebook/Facebook.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -572,7 +572,7 @@
 block discarded – undo
572 572
         $graphVersion = $graphVersion ?: $this->defaultGraphVersion;
573 573
 
574 574
         $uploader = new FacebookResumableUploader($this->app, $this->client, $accessToken, $graphVersion);
575
-        $endpoint = '/'.$target.'/videos';
575
+        $endpoint = '/' . $target . '/videos';
576 576
         $file = $this->videoToUpload($pathToFile);
577 577
         $chunk = $uploader->start($endpoint, $file);
578 578
 
Please login to merge, or discard this patch.