@@ -216,7 +216,7 @@ |
||
| 216 | 216 | |
| 217 | 217 | $tar->addOptionIfNotEmpty('--ignore-failed-read', $this->ignoreFailedRead, false); |
| 218 | 218 | $tar->addOptionIfNotEmpty('--use-compress-program', $this->compressProgram); |
| 219 | - $tar->addOption('-' . (empty($this->compressProgram) ? $this->compression : '') . 'cf'); |
|
| 219 | + $tar->addOption('-'.(empty($this->compressProgram) ? $this->compression : '').'cf'); |
|
| 220 | 220 | $tar->addArgument($this->tarPathname); |
| 221 | 221 | $tar->addOption('-C', dirname($this->path), ' '); |
| 222 | 222 | $tar->addArgument(basename($this->path)); |
@@ -170,11 +170,11 @@ |
||
| 170 | 170 | |
| 171 | 171 | $executable = new Executable\Tar($this->pathToTar); |
| 172 | 172 | $executable->archiveDirectory($this->path) |
| 173 | - ->useCompression($this->compression) |
|
| 174 | - ->useCompressProgram($this->compressProgram) |
|
| 175 | - ->ignoreFailedRead($this->ignoreFailedRead) |
|
| 176 | - ->removeSourceDirectory($this->removeSourceDir) |
|
| 177 | - ->archiveTo($this->pathToArchive); |
|
| 173 | + ->useCompression($this->compression) |
|
| 174 | + ->useCompressProgram($this->compressProgram) |
|
| 175 | + ->ignoreFailedRead($this->ignoreFailedRead) |
|
| 176 | + ->removeSourceDirectory($this->removeSourceDir) |
|
| 177 | + ->archiveTo($this->pathToArchive); |
|
| 178 | 178 | // add paths to exclude |
| 179 | 179 | foreach ($this->excludes as $path) { |
| 180 | 180 | $executable->addExclude($path); |