Passed
Pull Request — master (#322)
by
unknown
02:26
created
lib/Client/AbstractCurl.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Buzz\Client;
6 6
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $this->setOptionsFromRequest($curl, $request);
95 95
 
96 96
         $responseBuilder = new ResponseBuilder($this->responseFactory);
97
-        curl_setopt($curl, CURLOPT_HEADERFUNCTION, function ($ch, $data) use ($responseBuilder) {
97
+        curl_setopt($curl, CURLOPT_HEADERFUNCTION, function($ch, $data) use ($responseBuilder) {
98 98
             $str = trim($data);
99 99
             if ('' !== $str) {
100 100
                 if (0 === strpos(strtolower($str), 'http/')) {
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             return strlen($data);
108 108
         });
109 109
 
110
-        curl_setopt($curl, CURLOPT_WRITEFUNCTION, function ($ch, $data) use ($responseBuilder) {
110
+        curl_setopt($curl, CURLOPT_WRITEFUNCTION, function($ch, $data) use ($responseBuilder) {
111 111
             return $responseBuilder->writeBody($data);
112 112
         });
113 113
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
                         if (null !== $bodySize) {
170 170
                             $options[CURLOPT_INFILESIZE] = $bodySize;
171 171
                         }
172
-                        $options[CURLOPT_READFUNCTION] = function ($ch, $fd, $length) use ($body) {
172
+                        $options[CURLOPT_READFUNCTION] = function($ch, $fd, $length) use ($body) {
173 173
                             return $body->read($length);
174 174
                         };
175 175
                     } else {
Please login to merge, or discard this patch.