diff --git a/src/Tasks/Backup/DbDumperFactory.php b/src/Tasks/Backup/DbDumperFactory.php index f879a790..0a456f85 100644 --- a/src/Tasks/Backup/DbDumperFactory.php +++ b/src/Tasks/Backup/DbDumperFactory.php @@ -47,6 +47,7 @@ public static function createFromConnection(string $dbConnectionName): DbDumper if ($dbDumper instanceof MySql) { $dbDumper + ->setSkipSsl($dbConfig['dump']['skip_ssl'] ?? false) ->setDefaultCharacterSet($dbConfig['charset'] ?? '') ->setGtidPurged($dbConfig['dump']['mysql_gtid_purged'] ?? 'AUTO'); } @@ -124,7 +125,7 @@ protected static function callMethodOnDumper(DbDumper $dbDumper, string $methodN protected static function determineValidMethodName(DbDumper $dbDumper, string $methodName): string { - return collect([$methodName, 'set'.ucfirst($methodName)]) - ->first(fn (string $methodName) => method_exists($dbDumper, $methodName), ''); + return collect([$methodName, 'set' . ucfirst($methodName)]) + ->first(fn(string $methodName) => method_exists($dbDumper, $methodName), ''); } }