@@ -199,7 +199,7 @@ discard block |
||
| 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 |
||
| 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 | /** |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | // If no include-views is passed in, dump the same views as tables, mimic mysqldump behaviour. |
| 201 | - if ( ! isset( $dumpSettings['include-views'] ) ) { |
|
| 201 | + if (!isset($dumpSettings['include-views'])) { |
|
| 202 | 202 | $this->dumpSettings['include-views'] = $this->dumpSettings['include-tables']; |
| 203 | 203 | } |
| 204 | 204 | |
@@ -1945,7 +1945,7 @@ discard block |
||
| 1945 | 1945 | "Please check 'https://bugs.mysql.com/bug.php?id=14564'"); |
| 1946 | 1946 | } |
| 1947 | 1947 | $procedureStmt = $row['Create Procedure']; |
| 1948 | - if ( $this->dumpSettings['skip-definer'] ) { |
|
| 1948 | + if ($this->dumpSettings['skip-definer']) { |
|
| 1949 | 1949 | if ($procedureStmtReplaced = preg_replace( |
| 1950 | 1950 | '/^(CREATE)\s+('.self::DEFINER_RE.')?\s+(PROCEDURE\s.*)$/s', |
| 1951 | 1951 | '\1 \3', |
@@ -1979,7 +1979,7 @@ discard block |
||
| 1979 | 1979 | $characterSetClient = $row['character_set_client']; |
| 1980 | 1980 | $collationConnection = $row['collation_connection']; |
| 1981 | 1981 | $sqlMode = $row['sql_mode']; |
| 1982 | - if ( $this->dumpSettings['skip-definer'] ) { |
|
| 1982 | + if ($this->dumpSettings['skip-definer']) { |
|
| 1983 | 1983 | if ($functionStmtReplaced = preg_replace( |
| 1984 | 1984 | '/^(CREATE)\s+('.self::DEFINER_RE.')?\s+(FUNCTION\s.*)$/s', |
| 1985 | 1985 | '\1 \3', |
@@ -2135,7 +2135,7 @@ discard block |
||
| 2135 | 2135 | |
| 2136 | 2136 | public function start_transaction() |
| 2137 | 2137 | { |
| 2138 | - return "START TRANSACTION " . |
|
| 2138 | + return "START TRANSACTION ". |
|
| 2139 | 2139 | "/*!40100 WITH CONSISTENT SNAPSHOT */"; |
| 2140 | 2140 | } |
| 2141 | 2141 | |