@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | } |
267 | 267 | |
268 | 268 | $new->timeOut($this->settings()->getTimeOut()); |
269 | - $new->connectTimeOut($this->_connectTimeOut);//->keepAlive(); // one sec |
|
269 | + $new->connectTimeOut($this->_connectTimeOut); //->keepAlive(); // one sec |
|
270 | 270 | $new->verbose(boolval($this->_verbose)); |
271 | 271 | |
272 | 272 | return $new; |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | public function setStdErrOut($stream) |
319 | 319 | { |
320 | 320 | if (is_resource($stream)) { |
321 | - $this->stdErrOut=$stream; |
|
321 | + $this->stdErrOut = $stream; |
|
322 | 322 | } |
323 | 323 | |
324 | 324 | } |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | |
388 | 388 | $request->url($url); |
389 | 389 | |
390 | - $request->setCallbackFunction(function (CurlerRequest $request) { |
|
390 | + $request->setCallbackFunction(function(CurlerRequest $request) { |
|
391 | 391 | $handle = $request->getInfileHandle(); |
392 | 392 | if (is_resource($handle)) { |
393 | 393 | fclose($handle); |
@@ -526,7 +526,7 @@ discard block |
||
526 | 526 | } |
527 | 527 | |
528 | 528 | |
529 | - $request->setResultFileHandle($fout, $isGz)->setCallbackFunction(function (CurlerRequest $request) { |
|
529 | + $request->setResultFileHandle($fout, $isGz)->setCallbackFunction(function(CurlerRequest $request) { |
|
530 | 530 | fclose($request->getResultFileHandle()); |
531 | 531 | }); |
532 | 532 | } |
@@ -717,11 +717,11 @@ discard block |
||
717 | 717 | if (!is_callable($callable)) { |
718 | 718 | if ($streamRW->isWrite()) { |
719 | 719 | |
720 | - $callable = function ($ch, $fd, $length) use ($stream) { |
|
720 | + $callable = function($ch, $fd, $length) use ($stream) { |
|
721 | 721 | return ($line = fread($stream, $length)) ? $line : ''; |
722 | 722 | }; |
723 | 723 | } else { |
724 | - $callable = function ($ch, $fd) use ($stream) { |
|
724 | + $callable = function($ch, $fd) use ($stream) { |
|
725 | 725 | return fwrite($stream, $fd); |
726 | 726 | }; |
727 | 727 | } |