@@ -159,8 +159,7 @@ discard block |
||
| 159 | 159 | public function getEncryptionMethod() |
| 160 | 160 | { |
| 161 | 161 | return isset(self::$encryptionMethods[$this->getKeyStrength()]) ? |
| 162 | - self::$encryptionMethods[$this->getKeyStrength()] : |
|
| 163 | - self::$encryptionMethods[self::KEY_STRENGTH_256BIT]; |
|
| 162 | + self::$encryptionMethods[$this->getKeyStrength()] : self::$encryptionMethods[self::KEY_STRENGTH_256BIT]; |
|
| 164 | 163 | } |
| 165 | 164 | |
| 166 | 165 | /** |
@@ -210,8 +209,7 @@ discard block |
||
| 210 | 209 | public static function encryptionStrength($keyStrength) |
| 211 | 210 | { |
| 212 | 211 | return isset(self::$keyStrengths[$keyStrength]) ? |
| 213 | - self::$keyStrengths[$keyStrength] : |
|
| 214 | - self::$keyStrengths[self::KEY_STRENGTH_128BIT]; |
|
| 212 | + self::$keyStrengths[$keyStrength] : self::$keyStrengths[self::KEY_STRENGTH_128BIT]; |
|
| 215 | 213 | } |
| 216 | 214 | |
| 217 | 215 | /** |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | if (is_array($entries)) { |
| 316 | 316 | $entries = array_unique($entries); |
| 317 | 317 | $flipEntries = array_flip($entries); |
| 318 | - $zipEntries = array_filter($zipEntries, function (ZipEntry $zipEntry) use ($flipEntries) { |
|
| 318 | + $zipEntries = array_filter($zipEntries, function(ZipEntry $zipEntry) use ($flipEntries) { |
|
| 319 | 319 | return isset($flipEntries[$zipEntry->getName()]); |
| 320 | 320 | }); |
| 321 | 321 | } |
@@ -629,8 +629,7 @@ discard block |
||
| 629 | 629 | } |
| 630 | 630 | |
| 631 | 631 | $iterator = $iterator instanceof \RecursiveIterator ? |
| 632 | - new \RecursiveIteratorIterator($iterator) : |
|
| 633 | - new \IteratorIterator($iterator); |
|
| 632 | + new \RecursiveIteratorIterator($iterator) : new \IteratorIterator($iterator); |
|
| 634 | 633 | /** |
| 635 | 634 | * @var string[] $files |
| 636 | 635 | * @var string $path |
@@ -972,7 +971,7 @@ discard block |
||
| 972 | 971 | throw new InvalidArgumentException('Invalid compression level. Minimum level ' . |
| 973 | 972 | self::LEVEL_DEFAULT_COMPRESSION . '. Maximum level ' . self::LEVEL_BEST_COMPRESSION); |
| 974 | 973 | } |
| 975 | - $this->matcher()->all()->invoke(function ($entry) use ($compressionLevel) { |
|
| 974 | + $this->matcher()->all()->invoke(function($entry) use ($compressionLevel) { |
|
| 976 | 975 | $this->setCompressionLevelEntry($entry, $compressionLevel); |
| 977 | 976 | }); |
| 978 | 977 | return $this; |