@@ -50,14 +50,14 @@ |
||
| 50 | 50 | { |
| 51 | 51 | $suffix = Formats::getFormatExtension(static::FORMAT); |
| 52 | 52 | if ($suffix === null) { |
| 53 | - throw new \Exception('Format suffix is empty for ' . static::FORMAT . ', it should be initialized!'); |
|
| 53 | + throw new \Exception('Format suffix is empty for '.static::FORMAT.', it should be initialized!'); |
|
| 54 | 54 | } |
| 55 | 55 | if ($password !== null) { |
| 56 | - throw new UnsupportedOperationException($suffix . ' archive does not support password!'); |
|
| 56 | + throw new UnsupportedOperationException($suffix.' archive does not support password!'); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | parent::__construct($archiveFileName, $format); |
| 60 | - $this->inArchiveFileName = basename($archiveFileName, '.' . $suffix); |
|
| 60 | + $this->inArchiveFileName = basename($archiveFileName, '.'.$suffix); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | public function getFileStream($fileName) |
| 211 | 211 | { |
| 212 | - return fopen('phar://'.$this->fileName . '/' . $fileName, 'rb'); |
|
| 212 | + return fopen('phar://'.$this->fileName.'/'.$fileName, 'rb'); |
|
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | /** |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | ) |
| 301 | 301 | { |
| 302 | 302 | if ($password !== null) { |
| 303 | - throw new UnsupportedOperationException('Driver (' . __CLASS__ . ') could not encrypt an archive'); |
|
| 303 | + throw new UnsupportedOperationException('Driver ('.__CLASS__.') could not encrypt an archive'); |
|
| 304 | 304 | } |
| 305 | 305 | |
| 306 | 306 | if ($fileProgressCallable !== null && !is_callable($fileProgressCallable)) { |
@@ -327,13 +327,13 @@ discard block |
||
| 327 | 327 | break; |
| 328 | 328 | } |
| 329 | 329 | |
| 330 | - $destination_file = $basename . '.' . ($archiveFormat === Formats::ZIP ? 'zip' : 'tar'); |
|
| 330 | + $destination_file = $basename.'.'.($archiveFormat === Formats::ZIP ? 'zip' : 'tar'); |
|
| 331 | 331 | // if compression used and there is .tar archive with that's name, |
| 332 | 332 | // use temp file |
| 333 | - if ($compression !== null && file_exists($basename . '.' . ($archiveFormat === Formats::ZIP ? 'zip' : 'tar'))) { |
|
| 333 | + if ($compression !== null && file_exists($basename.'.'.($archiveFormat === Formats::ZIP ? 'zip' : 'tar'))) { |
|
| 334 | 334 | $temp_basename = tempnam(sys_get_temp_dir(), 'tar-archive'); |
| 335 | 335 | unlink($temp_basename); |
| 336 | - $destination_file = $temp_basename. '.' . ($archiveFormat === Formats::ZIP ? 'zip' : 'tar'); |
|
| 336 | + $destination_file = $temp_basename.'.'.($archiveFormat === Formats::ZIP ? 'zip' : 'tar'); |
|
| 337 | 337 | } |
| 338 | 338 | |
| 339 | 339 | $tar = new PharData( |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | |
| 383 | 383 | // it temp file was used, rename it to destination archive name |
| 384 | 384 | if (isset($temp_basename)) { |
| 385 | - rename($temp_basename . '.' . $ext, $archiveFileName); |
|
| 385 | + rename($temp_basename.'.'.$ext, $archiveFileName); |
|
| 386 | 386 | } |
| 387 | 387 | |
| 388 | 388 | return count($files); |