@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | public static function getDescription() |
| 30 | 30 | { |
| 31 | - return 'adapter for ext-zip'.(extension_loaded('zip') && defined('\ZipArchive::LIBZIP_VERSION') ? ' ('. ZipArchive::LIBZIP_VERSION.')' : null); |
|
| 31 | + return 'adapter for ext-zip'.(extension_loaded('zip') && defined('\ZipArchive::LIBZIP_VERSION') ? ' ('.ZipArchive::LIBZIP_VERSION.')' : null); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | public static function getDescription() |
| 23 | 23 | { |
| 24 | - return 'adapter for ext-rar' . (self::isInstalled() ? ' (' . phpversion('rar') . ')' : null); |
|
| 24 | + return 'adapter for ext-rar'.(self::isInstalled() ? ' ('.phpversion('rar').')' : null); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | /** |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | public static function getInstallationInstruction() |
| 31 | 31 | { |
| 32 | - return 'install [rar] extension.' . "\n" . 'Can be installed with pecl: `pecl install rar`'; |
|
| 32 | + return 'install [rar] extension.'."\n".'Can be installed with pecl: `pecl install rar`'; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | protected function open($archiveFileName, $password) |
| 82 | 82 | { |
| 83 | - $this->rar = \RarArchive::open($archiveFileName, $password, function ($vol) { |
|
| 83 | + $this->rar = \RarArchive::open($archiveFileName, $password, function($vol) { |
|
| 84 | 84 | var_dump($vol); |
| 85 | 85 | return null; |
| 86 | 86 | }); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public static function getInstallationInstruction() |
| 31 | 31 | { |
| 32 | - return 'install [' . static::EXTENSION_NAME . '] extension' . "\n" . 'For 5.x: https://github.com/payden/php-xz' . "\n" . 'For 7.x/8.x: https://github.com/codemasher/php-ext-xz'; |
|
| 32 | + return 'install ['.static::EXTENSION_NAME.'] extension'."\n".'For 5.x: https://github.com/payden/php-xz'."\n".'For 7.x/8.x: https://github.com/codemasher/php-ext-xz'; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
@@ -50,10 +50,10 @@ |
||
| 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); |
@@ -15,6 +15,6 @@ |
||
| 15 | 15 | |
| 16 | 16 | public static function getInstallationInstruction() |
| 17 | 17 | { |
| 18 | - return 'install [' . static::EXTENSION_NAME . '] php extension'; |
|
| 18 | + return 'install ['.static::EXTENSION_NAME.'] php extension'; |
|
| 19 | 19 | } |
| 20 | 20 | } |
@@ -15,6 +15,6 @@ |
||
| 15 | 15 | |
| 16 | 16 | public static function getInstallationInstruction() |
| 17 | 17 | { |
| 18 | - return 'install library [ ' . static::PACKAGE_NAME . ']: `composer require ' . static::PACKAGE_NAME . '`'; |
|
| 18 | + return 'install library [ '.static::PACKAGE_NAME.']: `composer require '.static::PACKAGE_NAME.'`'; |
|
| 19 | 19 | } |
| 20 | 20 | } |