Passed
Branch master (97db60)
by Alexey
02:28
created
Category
src/PhpZip/Extra/Fields/WinZipAesEntryExtraField.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -159,8 +159,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/PhpZip/ZipFile.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.