@@ -1937,7 +1937,7 @@ discard block |
||
1937 | 1937 | "Please check 'https://bugs.mysql.com/bug.php?id=14564'"); |
1938 | 1938 | } |
1939 | 1939 | $procedureStmt = $row['Create Procedure']; |
1940 | - if ( $this->dumpSettings['skip-definer'] ) { |
|
1940 | + if ($this->dumpSettings['skip-definer']) { |
|
1941 | 1941 | if ($procedureStmtReplaced = preg_replace( |
1942 | 1942 | '/^(CREATE)\s+('.self::DEFINER_RE.')?\s+(PROCEDURE\s.*)$/s', |
1943 | 1943 | '\1 \3', |
@@ -1968,7 +1968,7 @@ discard block |
||
1968 | 1968 | "Please check 'https://bugs.mysql.com/bug.php?id=14564'"); |
1969 | 1969 | } |
1970 | 1970 | $functionStmt = $row['Create Function']; |
1971 | - if ( $this->dumpSettings['skip-definer'] ) { |
|
1971 | + if ($this->dumpSettings['skip-definer']) { |
|
1972 | 1972 | if ($functionStmtReplaced = preg_replace( |
1973 | 1973 | '/^(CREATE)\s+('.self::DEFINER_RE.')?\s+(FUNCTION\s.*)$/s', |
1974 | 1974 | '\1 \3', |
@@ -2111,7 +2111,7 @@ discard block |
||
2111 | 2111 | |
2112 | 2112 | public function start_transaction() |
2113 | 2113 | { |
2114 | - return "START TRANSACTION " . |
|
2114 | + return "START TRANSACTION ". |
|
2115 | 2115 | "/*!40100 WITH CONSISTENT SNAPSHOT */"; |
2116 | 2116 | } |
2117 | 2117 |
@@ -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 | /** |