Skip to content

Commit

Permalink
code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasDeWinter committed Apr 13, 2015
1 parent d51a47f commit 8fa0632
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/BackupHandlers/Database/DatabaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ public function getDatabase(array $realConfig)

protected function buildMySQL(array $config)
{
$socket = isset($config['unix_socket']) ? $config['unix_socket'] : '';

$port = isset($config['port']) ? $config['port'] : 3306;

$socket = isset($config['unix_socket']) ? $config['unix_socket'] : '';

$this->database = new Databases\MySQLDatabase(
$this->console,
$config['database'],
Expand Down
4 changes: 3 additions & 1 deletion src/BackupHandlers/Database/Databases/MySQLDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ protected function getDumpCommandPath()

/**
* Set the socket if one is specified in the configuration
*
* @return string
*/
protected function getSocketArgument()
{
Expand All @@ -95,6 +97,6 @@ protected function getSocketArgument()
return '--socket=' . $this->socket;
}

return null;
return '';
}
}

0 comments on commit 8fa0632

Please sign in to comment.