@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | protected function run($argument) { |
78 | - if ($this->killBackgroundJob((int)$argument['retryNo'])) { |
|
78 | + if ($this->killBackgroundJob((int) $argument['retryNo'])) { |
|
79 | 79 | return; |
80 | 80 | } |
81 | 81 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * @return bool |
109 | 109 | */ |
110 | 110 | protected function shouldRun($argument) { |
111 | - $retryNo = (int)$argument['retryNo']; |
|
111 | + $retryNo = (int) $argument['retryNo']; |
|
112 | 112 | $delay = $this->interval * 6 ** $retryNo; |
113 | 113 | return !isset($argument['lastRun']) || ((time() - $argument['lastRun']) > $delay); |
114 | 114 | } |
@@ -66,14 +66,14 @@ |
||
66 | 66 | $this->signer = $signer; |
67 | 67 | $this->jobList = $jobList; |
68 | 68 | |
69 | - if($config->getSystemValue('has_internet_connection', true) === false) { |
|
69 | + if ($config->getSystemValue('has_internet_connection', true) === false) { |
|
70 | 70 | return; |
71 | 71 | } |
72 | 72 | |
73 | 73 | $this->lookupServerEnabled = $this->config->getAppValue('files_sharing', 'lookupServerUploadEnabled', 'yes') === 'yes'; |
74 | 74 | |
75 | 75 | $this->lookupServer = $config->getSystemValue('lookup_server', 'https://lookup.nextcloud.com'); |
76 | - if(!empty($this->lookupServer)) { |
|
76 | + if (!empty($this->lookupServer)) { |
|
77 | 77 | $this->lookupServer = rtrim($this->lookupServer, '/'); |
78 | 78 | $this->lookupServer .= '/users'; |
79 | 79 | } |