Passed
Pull Request — master (#50)
by
unknown
11:34
created
src/Drivers/OneFile/Bzip.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,9 +86,9 @@
 block discarded – undo
86 86
         $fp = fopen($targetPath, "w");
87 87
         while (!feof($sfp)) {
88 88
             $chunk = bzread($sfp, 8192);
89
-            if($chunk === 0 || $chunk === false)
89
+            if ($chunk === 0 || $chunk === false)
90 90
                 throw new ArchiveExtractionException('Cannot read bzip chunk');
91
-            if(fwrite($fp, $chunk, strlen($chunk)) === false)
91
+            if (fwrite($fp, $chunk, strlen($chunk)) === false)
92 92
                 throw new ArchiveExtractionException('Cannot write bzip chunk');
93 93
         }
94 94
         bzclose($sfp);
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,10 +86,12 @@
 block discarded – undo
86 86
         $fp = fopen($targetPath, "w");
87 87
         while (!feof($sfp)) {
88 88
             $chunk = bzread($sfp, 8192);
89
-            if($chunk === 0 || $chunk === false)
90
-                throw new ArchiveExtractionException('Cannot read bzip chunk');
91
-            if(fwrite($fp, $chunk, strlen($chunk)) === false)
92
-                throw new ArchiveExtractionException('Cannot write bzip chunk');
89
+            if($chunk === 0 || $chunk === false) {
90
+                            throw new ArchiveExtractionException('Cannot read bzip chunk');
91
+            }
92
+            if(fwrite($fp, $chunk, strlen($chunk)) === false) {
93
+                            throw new ArchiveExtractionException('Cannot write bzip chunk');
94
+            }
93 95
         }
94 96
         bzclose($sfp);
95 97
         fclose($fp);
Please login to merge, or discard this patch.