Fixed spaces

This commit is contained in:
Vincent Petry 2013-10-17 23:22:19 +02:00
parent 52e31405f7
commit b1f72edc57
1 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
* like request timeout.
*/
class OC_DAVClient extends \Sabre_DAV_Client{
class OC_DAVClient extends \Sabre_DAV_Client {
protected $requestTimeout;
@ -33,12 +33,12 @@ class OC_DAVClient extends \Sabre_DAV_Client{
* @brief Sets the request timeout or 0 to disable timeout.
* @param int timeout in seconds or 0 to disable
*/
public function setRequestTimeout($timeout){
public function setRequestTimeout($timeout) {
$this->requestTimeout = (int)$timeout;
}
protected function curlRequest($url, $settings) {
if ($this->requestTimeout > 0){
if ($this->requestTimeout > 0) {
$settings[CURLOPT_TIMEOUT] = $this->requestTimeout;
}
return parent::curlRequest($url, $settings);