Passed
Push — master ( 06be63...0931ad )
by diego
03:06
created
src/Ifsnop/Mysqldump/Mysqldump.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 
200 200
         // If no include-views is passed in, dump the same views as tables, mimic mysqldump behaviour.
201 201
         if ( ! isset( $dumpSettings['include-views'] ) ) {
202
-			$this->dumpSettings['include-views'] = $this->dumpSettings['include-tables'];
202
+            $this->dumpSettings['include-views'] = $this->dumpSettings['include-tables'];
203 203
         }
204 204
 
205 205
         // Create a new compressManager to manage compressed output
@@ -1461,39 +1461,39 @@  discard block
 block discarded – undo
1461 1461
 
1462 1462
 class CompressGzipstream extends CompressManagerFactory
1463 1463
 {
1464
-  private $fileHandler = null;
1464
+    private $fileHandler = null;
1465 1465
 
1466
-  private $compressContext;
1466
+    private $compressContext;
1467 1467
 
1468
-  /**
1469
-   * @param string $filename
1470
-   */
1471
-  public function open($filename)
1472
-  {
1468
+    /**
1469
+     * @param string $filename
1470
+     */
1471
+    public function open($filename)
1472
+    {
1473 1473
     $this->fileHandler = fopen($filename, "wb");
1474 1474
     if (false === $this->fileHandler) {
1475
-      throw new Exception("Output file is not writable");
1475
+        throw new Exception("Output file is not writable");
1476 1476
     }
1477 1477
 
1478 1478
     $this->compressContext = deflate_init(ZLIB_ENCODING_GZIP, array('level' => 9));
1479 1479
     return true;
1480
-  }
1480
+    }
1481 1481
 
1482
-  public function write($str)
1483
-  {
1482
+    public function write($str)
1483
+    {
1484 1484
 
1485 1485
     $bytesWritten = fwrite($this->fileHandler, deflate_add($this->compressContext, $str, ZLIB_NO_FLUSH));
1486 1486
     if (false === $bytesWritten) {
1487
-      throw new Exception("Writting to file failed! Probably, there is no more free space left?");
1487
+        throw new Exception("Writting to file failed! Probably, there is no more free space left?");
1488 1488
     }
1489 1489
     return $bytesWritten;
1490
-  }
1490
+    }
1491 1491
 
1492
-  public function close()
1493
-  {
1492
+    public function close()
1493
+    {
1494 1494
     fwrite($this->fileHandler, deflate_add($this->compressContext, '', ZLIB_FINISH));
1495 1495
     return fclose($this->fileHandler);
1496
-  }
1496
+    }
1497 1497
 }
1498 1498
 
1499 1499
 /**
Please login to merge, or discard this patch.