@@ -130,7 +130,7 @@ |
||
| 130 | 130 | // should the currently created backup be deleted as well? |
| 131 | 131 | if ($this->deleteTarget) { |
| 132 | 132 | $file = $target->toFile(); |
| 133 | - $index = date('YmdHis', $file->getMTime()) . '-' . count($files) . '-' . $file->getPathname(); |
|
| 133 | + $index = date('YmdHis', $file->getMTime()).'-'.count($files).'-'.$file->getPathname(); |
|
| 134 | 134 | $files[$index] = $file; |
| 135 | 135 | } |
| 136 | 136 | return $files; |
@@ -238,7 +238,7 @@ |
||
| 238 | 238 | $tar->addOptionIfNotEmpty('--force-local', $this->local, false); |
| 239 | 239 | $tar->addOptionIfNotEmpty('--ignore-failed-read', $this->ignoreFailedRead, false); |
| 240 | 240 | $tar->addOptionIfNotEmpty('--use-compress-program', $this->compressProgram); |
| 241 | - $tar->addOption('-' . (empty($this->compressProgram) ? $this->compression : '') . 'cf'); |
|
| 241 | + $tar->addOption('-'.(empty($this->compressProgram) ? $this->compression : '').'cf'); |
|
| 242 | 242 | $tar->addArgument($this->tarPathname); |
| 243 | 243 | $tar->addOption('-C', dirname($this->path), ' '); |
| 244 | 244 | $tar->addArgument(basename($this->path)); |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | // check if json_decode succeeded, otherwise return default parameters |
| 135 | 135 | if ($outputArray) { |
| 136 | 136 | // only value where valuestring equals vars key is supported. |
| 137 | - array_walk_recursive($outputArray, function (&$value, &$key) use ($vars) { |
|
| 137 | + array_walk_recursive($outputArray, function(&$value, &$key) use ($vars) { |
|
| 138 | 138 | if (strpos($value, '__') === 0) { |
| 139 | 139 | $value = $vars[$value]; |
| 140 | 140 | } |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | $ch = curl_init(); |
| 158 | 158 | $uri = $this->options['uri']; |
| 159 | 159 | if (strtoupper($this->options['method']) == 'GET') { |
| 160 | - $uri .= '?' . http_build_query($output); |
|
| 160 | + $uri .= '?'.http_build_query($output); |
|
| 161 | 161 | } |
| 162 | 162 | curl_setopt($ch, CURLOPT_URL, $uri); |
| 163 | 163 | if (strtoupper($this->options['method']) == 'POST') { |
@@ -166,11 +166,11 @@ discard block |
||
| 166 | 166 | curl_setopt($ch, CURLOPT_POSTFIELDS, $output); |
| 167 | 167 | } |
| 168 | 168 | if (!empty($this->options['auth-user']) && !empty($this->options['auth-pwd'])) { |
| 169 | - curl_setopt($ch, CURLOPT_USERPWD, $this->options['auth-user'] . ":" . $this->options['auth-pwd']); |
|
| 169 | + curl_setopt($ch, CURLOPT_USERPWD, $this->options['auth-user'].":".$this->options['auth-pwd']); |
|
| 170 | 170 | } |
| 171 | 171 | curl_setopt($ch, CURLOPT_HTTPHEADER, [ |
| 172 | - 'Content-Type: ' . $this->options['content-type'], |
|
| 173 | - 'Accept: ' . $this->options['content-type'] |
|
| 172 | + 'Content-Type: '.$this->options['content-type'], |
|
| 173 | + 'Accept: '.$this->options['content-type'] |
|
| 174 | 174 | ]); |
| 175 | 175 | curl_exec($ch); |
| 176 | 176 | curl_close($ch); |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | $this->toXml($new_object, $value); |
| 213 | 213 | } else { |
| 214 | 214 | // if the key is an integer, it needs text with it to actually work. |
| 215 | - if ($key == (int)$key) { |
|
| 215 | + if ($key == (int) $key) { |
|
| 216 | 216 | $key = "key_$key"; |
| 217 | 217 | } |
| 218 | 218 | |