Passed
Pull Request — master (#234)
by
unknown
09:32
created
src/Ifsnop/Mysqldump/Mysqldump.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1119,7 +1119,7 @@  discard block
 block discarded – undo
1119 1119
         $resultSet = $this->dbHandler->query($stmt);
1120 1120
         $resultSet->setFetchMode(PDO::FETCH_ASSOC);
1121 1121
 
1122
-        $replace = $this->dumpSettings['replace']  && $this->getHasPrimaryKey($tableName);
1122
+        $replace = $this->dumpSettings['replace'] && $this->getHasPrimaryKey($tableName);
1123 1123
         $strUpdates = $replace ? $this->getUpdateColumnsOnDuplicate($tableName) : '';
1124 1124
         $extendedInsert = $this->dumpSettings['extended-insert'] && !$replace;
1125 1125
         $ignore = $this->dumpSettings['insert-ignore'] && !$replace ? '  IGNORE' : '';
@@ -1198,7 +1198,7 @@  discard block
 block discarded – undo
1198 1198
                 $colUpdates[] = "`${colName}`=`${colName}`";
1199 1199
             }
1200 1200
         }
1201
-        return implode(',',$colUpdates);
1201
+        return implode(',', $colUpdates);
1202 1202
     }
1203 1203
 
1204 1204
     /**
@@ -1919,7 +1919,7 @@  discard block
 block discarded – undo
1919 1919
             $createTable = preg_replace($match, $replace, $createTable);
1920 1920
         }
1921 1921
         
1922
-		if ($this->dumpSettings['if-not-exists'] ) {
1922
+		if ($this->dumpSettings['if-not-exists']) {
1923 1923
 			$createTable = preg_replace('/^CREATE TABLE/', 'CREATE TABLE IF NOT EXISTS', $createTable);
1924 1924
         }        
1925 1925
 
@@ -2022,7 +2022,7 @@  discard block
 block discarded – undo
2022 2022
         $characterSetClient = $row['character_set_client'];
2023 2023
         $collationConnection = $row['collation_connection'];
2024 2024
         $sqlMode = $row['sql_mode'];
2025
-        if ( $this->dumpSettings['skip-definer'] ) {
2025
+        if ($this->dumpSettings['skip-definer']) {
2026 2026
             if ($functionStmtReplaced = preg_replace(
2027 2027
                 '/^(CREATE)\s+('.self::DEFINER_RE.')?\s+(FUNCTION\s.*)$/s',
2028 2028
                 '\1 \3',
Please login to merge, or discard this patch.