Passed
Pull Request — master (#322)
by
unknown
02:20
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
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         $this->setOptionsFromRequest($curl, $request);
96 96
 
97 97
         $responseBuilder = new ResponseBuilder($this->messageFactory);
98
-        curl_setopt($curl, CURLOPT_HEADERFUNCTION, function ($ch, $data) use ($responseBuilder) {
98
+        curl_setopt($curl, CURLOPT_HEADERFUNCTION, function($ch, $data) use ($responseBuilder) {
99 99
             $str = trim($data);
100 100
             if ('' !== $str) {
101 101
                 if (0 === strpos(strtolower($str), 'http/')) {
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             return strlen($data);
109 109
         });
110 110
 
111
-        curl_setopt($curl, CURLOPT_WRITEFUNCTION, function ($ch, $data) use ($responseBuilder) {
111
+        curl_setopt($curl, CURLOPT_WRITEFUNCTION, function($ch, $data) use ($responseBuilder) {
112 112
             return $responseBuilder->writeBody($data);
113 113
         });
114 114
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
                         if (null !== $bodySize) {
171 171
                             $options[CURLOPT_INFILESIZE] = $bodySize;
172 172
                         }
173
-                        $options[CURLOPT_READFUNCTION] = function ($ch, $fd, $length) use ($body) {
173
+                        $options[CURLOPT_READFUNCTION] = function($ch, $fd, $length) use ($body) {
174 174
                             return $body->read($length);
175 175
                         };
176 176
                     } else {
Please login to merge, or discard this patch.