Skip to content

Commit b9860da

Browse files
scrutinizer-auto-fixerifsnop
authored andcommitted
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
1 parent 06c78a7 commit b9860da

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/Ifsnop/Mysqldump/Mysqldump.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,39 +1480,39 @@ public function close()
14801480

14811481
class CompressGzipstream extends CompressManagerFactory
14821482
{
1483-
private $fileHandler = null;
1483+
private $fileHandler = null;
14841484

1485-
private $compressContext;
1485+
private $compressContext;
14861486

1487-
/**
1488-
* @param string $filename
1489-
*/
1490-
public function open($filename)
1491-
{
1487+
/**
1488+
* @param string $filename
1489+
*/
1490+
public function open($filename)
1491+
{
14921492
$this->fileHandler = fopen($filename, "wb");
14931493
if (false === $this->fileHandler) {
1494-
throw new Exception("Output file is not writable");
1494+
throw new Exception("Output file is not writable");
14951495
}
14961496

14971497
$this->compressContext = deflate_init(ZLIB_ENCODING_GZIP, array('level' => 9));
14981498
return true;
1499-
}
1499+
}
15001500

1501-
public function write($str)
1502-
{
1501+
public function write($str)
1502+
{
15031503

15041504
$bytesWritten = fwrite($this->fileHandler, deflate_add($this->compressContext, $str, ZLIB_NO_FLUSH));
15051505
if (false === $bytesWritten) {
1506-
throw new Exception("Writting to file failed! Probably, there is no more free space left?");
1506+
throw new Exception("Writting to file failed! Probably, there is no more free space left?");
15071507
}
15081508
return $bytesWritten;
1509-
}
1509+
}
15101510

1511-
public function close()
1512-
{
1511+
public function close()
1512+
{
15131513
fwrite($this->fileHandler, deflate_add($this->compressContext, '', ZLIB_FINISH));
15141514
return fclose($this->fileHandler);
1515-
}
1515+
}
15161516
}
15171517

15181518
/**
@@ -1964,7 +1964,7 @@ public function create_procedure($row)
19641964
"Please check 'https://bugs.mysql.com/bug.php?id=14564'");
19651965
}
19661966
$procedureStmt = $row['Create Procedure'];
1967-
if ( $this->dumpSettings['skip-definer'] ) {
1967+
if ($this->dumpSettings['skip-definer']) {
19681968
if ($procedureStmtReplaced = preg_replace(
19691969
'/^(CREATE)\s+('.self::DEFINER_RE.')?\s+(PROCEDURE\s.*)$/s',
19701970
'\1 \3',
@@ -2154,7 +2154,7 @@ public function setup_transaction()
21542154

21552155
public function start_transaction()
21562156
{
2157-
return "START TRANSACTION " .
2157+
return "START TRANSACTION ".
21582158
"/*!40100 WITH CONSISTENT SNAPSHOT */";
21592159
}
21602160

0 commit comments

Comments
 (0)