Passed
Pull Request — master (#162)
by Brad
02:34
created
src/Ifsnop/Mysqldump/Mysqldump.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1399,37 +1399,37 @@
 block discarded – undo
1399 1399
 
1400 1400
 class CompressGzipstream extends CompressManagerFactory
1401 1401
 {
1402
-  private $fileHandler = null;
1402
+    private $fileHandler = null;
1403 1403
 
1404
-  private $compressContext;
1404
+    private $compressContext;
1405 1405
 
1406
-  /**
1407
-   * @param string $filename
1408
-   */
1409
-  public function open($filename)
1410
-  {
1406
+    /**
1407
+     * @param string $filename
1408
+     */
1409
+    public function open($filename)
1410
+    {
1411 1411
     $this->fileHandler = fopen($filename, "wb");
1412 1412
     if (false === $this->fileHandler) {
1413
-      throw new Exception("Output file is not writable");
1413
+        throw new Exception("Output file is not writable");
1414 1414
     }
1415 1415
 
1416 1416
     $this->compressContext = deflate_init(ZLIB_ENCODING_GZIP, ['level' => 9]);
1417 1417
     return true;
1418
-  }
1418
+    }
1419 1419
 
1420
-  public function write($str)
1421
-  {
1420
+    public function write($str)
1421
+    {
1422 1422
     if (false === ($bytesWritten = fwrite($this->fileHandler, deflate_add($this->compressContext, $str, ZLIB_NO_FLUSH)))) {
1423
-      throw new Exception("Writting to file failed! Probably, there is no more free space left?");
1423
+        throw new Exception("Writting to file failed! Probably, there is no more free space left?");
1424 1424
     }
1425 1425
     return $bytesWritten;
1426
-  }
1426
+    }
1427 1427
 
1428
-  public function close()
1429
-  {
1428
+    public function close()
1429
+    {
1430 1430
     fwrite($this->fileHandler, deflate_add($this->compressContext, '', ZLIB_FINISH));
1431 1431
     return fclose($this->fileHandler);
1432
-  }
1432
+    }
1433 1433
 }
1434 1434
 
1435 1435
 /**
Please login to merge, or discard this patch.