@@ -177,7 +177,7 @@ |
||
177 | 177 | */ |
178 | 178 | public function max_execution_time(float $time) |
179 | 179 | { |
180 | - $this->set('max_execution_time',$time); |
|
180 | + $this->set('max_execution_time', $time); |
|
181 | 181 | return $this; |
182 | 182 | } |
183 | 183 |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | public function setStdErrOut($stream) |
308 | 308 | { |
309 | 309 | if (is_resource($stream)) { |
310 | - $this->stdErrOut=$stream; |
|
310 | + $this->stdErrOut = $stream; |
|
311 | 311 | } |
312 | 312 | |
313 | 313 | } |
@@ -493,7 +493,7 @@ discard block |
||
493 | 493 | */ |
494 | 494 | public function connectTimeOut(float $seconds = 1.0) |
495 | 495 | { |
496 | - $this->options[CURLOPT_CONNECTTIMEOUT_MS] = (int) ($seconds*1000.0); |
|
496 | + $this->options[CURLOPT_CONNECTTIMEOUT_MS] = (int) ($seconds * 1000.0); |
|
497 | 497 | return $this; |
498 | 498 | } |
499 | 499 | |
@@ -736,7 +736,7 @@ discard block |
||
736 | 736 | $curl_opt[CURLOPT_POSTFIELDS] = $this->parameters; |
737 | 737 | |
738 | 738 | if (!is_array($this->parameters)) { |
739 | - $this->header('Content-Length', mb_strlen($this->parameters, '8bit')); |
|
739 | + $this->header('Content-Length', mb_strlen($this->parameters, '8bit')); |
|
740 | 740 | } |
741 | 741 | } |
742 | 742 | } |
@@ -767,9 +767,9 @@ discard block |
||
767 | 767 | } |
768 | 768 | |
769 | 769 | if ($this->options[CURLOPT_VERBOSE]) { |
770 | - $msg="\n-----------BODY REQUEST----------\n" . $curl_opt[CURLOPT_POSTFIELDS] . "\n------END--------\n"; |
|
770 | + $msg = "\n-----------BODY REQUEST----------\n" . $curl_opt[CURLOPT_POSTFIELDS] . "\n------END--------\n"; |
|
771 | 771 | if ($this->stdErrOut && is_resource($this->stdErrOut)) { |
772 | - fwrite($this->stdErrOut,$msg); |
|
772 | + fwrite($this->stdErrOut, $msg); |
|
773 | 773 | } else { |
774 | 774 | echo $msg; |
775 | 775 | } |
@@ -777,7 +777,7 @@ discard block |
||
777 | 777 | |
778 | 778 | if ($this->stdErrOut) { |
779 | 779 | if (is_resource($this->stdErrOut)) { |
780 | - $curl_opt[CURLOPT_STDERR]=$this->stdErrOut; |
|
780 | + $curl_opt[CURLOPT_STDERR] = $this->stdErrOut; |
|
781 | 781 | } |
782 | 782 | } |
783 | 783 |