@@ -1458,39 +1458,39 @@ |
||
| 1458 | 1458 | |
| 1459 | 1459 | class CompressGzipstream extends CompressManagerFactory |
| 1460 | 1460 | { |
| 1461 | - private $fileHandler = null; |
|
| 1461 | + private $fileHandler = null; |
|
| 1462 | 1462 | |
| 1463 | - private $compressContext; |
|
| 1463 | + private $compressContext; |
|
| 1464 | 1464 | |
| 1465 | - /** |
|
| 1466 | - * @param string $filename |
|
| 1467 | - */ |
|
| 1468 | - public function open($filename) |
|
| 1469 | - { |
|
| 1465 | + /** |
|
| 1466 | + * @param string $filename |
|
| 1467 | + */ |
|
| 1468 | + public function open($filename) |
|
| 1469 | + { |
|
| 1470 | 1470 | $this->fileHandler = fopen($filename, "wb"); |
| 1471 | 1471 | if (false === $this->fileHandler) { |
| 1472 | - throw new Exception("Output file is not writable"); |
|
| 1472 | + throw new Exception("Output file is not writable"); |
|
| 1473 | 1473 | } |
| 1474 | 1474 | |
| 1475 | 1475 | $this->compressContext = deflate_init(ZLIB_ENCODING_GZIP, array('level' => 9)); |
| 1476 | 1476 | return true; |
| 1477 | - } |
|
| 1477 | + } |
|
| 1478 | 1478 | |
| 1479 | - public function write($str) |
|
| 1480 | - { |
|
| 1479 | + public function write($str) |
|
| 1480 | + { |
|
| 1481 | 1481 | |
| 1482 | 1482 | $bytesWritten = fwrite($this->fileHandler, deflate_add($this->compressContext, $str, ZLIB_NO_FLUSH)); |
| 1483 | 1483 | if (false === $bytesWritten) { |
| 1484 | - throw new Exception("Writting to file failed! Probably, there is no more free space left?"); |
|
| 1484 | + throw new Exception("Writting to file failed! Probably, there is no more free space left?"); |
|
| 1485 | 1485 | } |
| 1486 | 1486 | return $bytesWritten; |
| 1487 | - } |
|
| 1487 | + } |
|
| 1488 | 1488 | |
| 1489 | - public function close() |
|
| 1490 | - { |
|
| 1489 | + public function close() |
|
| 1490 | + { |
|
| 1491 | 1491 | fwrite($this->fileHandler, deflate_add($this->compressContext, '', ZLIB_FINISH)); |
| 1492 | 1492 | return fclose($this->fileHandler); |
| 1493 | - } |
|
| 1493 | + } |
|
| 1494 | 1494 | } |
| 1495 | 1495 | |
| 1496 | 1496 | /** |
@@ -1942,7 +1942,7 @@ discard block |
||
| 1942 | 1942 | "Please check 'https://bugs.mysql.com/bug.php?id=14564'"); |
| 1943 | 1943 | } |
| 1944 | 1944 | $procedureStmt = $row['Create Procedure']; |
| 1945 | - if ( $this->dumpSettings['skip-definer'] ) { |
|
| 1945 | + if ($this->dumpSettings['skip-definer']) { |
|
| 1946 | 1946 | if ($procedureStmtReplaced = preg_replace( |
| 1947 | 1947 | '/^(CREATE)\s+('.self::DEFINER_RE.')?\s+(PROCEDURE\s.*)$/s', |
| 1948 | 1948 | '\1 \3', |
@@ -1976,7 +1976,7 @@ discard block |
||
| 1976 | 1976 | $characterSetClient = $row['character_set_client']; |
| 1977 | 1977 | $collationConnection = $row['collation_connection']; |
| 1978 | 1978 | $sqlMode = $row['sql_mode']; |
| 1979 | - if ( $this->dumpSettings['skip-definer'] ) { |
|
| 1979 | + if ($this->dumpSettings['skip-definer']) { |
|
| 1980 | 1980 | if ($functionStmtReplaced = preg_replace( |
| 1981 | 1981 | '/^(CREATE)\s+('.self::DEFINER_RE.')?\s+(FUNCTION\s.*)$/s', |
| 1982 | 1982 | '\1 \3', |
@@ -2132,7 +2132,7 @@ discard block |
||
| 2132 | 2132 | |
| 2133 | 2133 | public function start_transaction() |
| 2134 | 2134 | { |
| 2135 | - return "START TRANSACTION " . |
|
| 2135 | + return "START TRANSACTION ". |
|
| 2136 | 2136 | "/*!40100 WITH CONSISTENT SNAPSHOT */"; |
| 2137 | 2137 | } |
| 2138 | 2138 | |