@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | 'mongodump' => [], |
| 44 | 44 | 'mysqldump' => [ |
| 45 | 45 | '/usr/local/mysql/bin', // Mac OS X |
| 46 | - '/usr/mysql/bin', // Linux |
|
| 46 | + '/usr/mysql/bin', // Linux |
|
| 47 | 47 | ], |
| 48 | 48 | 'tar' => [], |
| 49 | 49 | ]; |
@@ -82,20 +82,20 @@ discard block |
||
| 82 | 82 | public static function detectCmdLocation(string $cmd, string $path = '', array $optionalLocations = []) : string |
| 83 | 83 | { |
| 84 | 84 | $detectionSteps = [ |
| 85 | - function ($cmd) use ($path) { |
|
| 85 | + function($cmd) use ($path) { |
|
| 86 | 86 | if (!empty($path)) { |
| 87 | 87 | return self::detectCmdLocationInPath($cmd, $path); |
| 88 | 88 | } |
| 89 | 89 | return ''; |
| 90 | 90 | }, |
| 91 | - function ($cmd) { |
|
| 91 | + function($cmd) { |
|
| 92 | 92 | return self::detectCmdLocationWithWhich($cmd); |
| 93 | 93 | }, |
| 94 | - function ($cmd) { |
|
| 94 | + function($cmd) { |
|
| 95 | 95 | $paths = explode(PATH_SEPARATOR, self::getEnvPath()); |
| 96 | 96 | return self::detectCmdLocationInPaths($cmd, $paths); |
| 97 | 97 | }, |
| 98 | - function ($cmd) use ($optionalLocations) { |
|
| 98 | + function($cmd) use ($optionalLocations) { |
|
| 99 | 99 | return self::detectCmdLocationInPaths($cmd, $optionalLocations); |
| 100 | 100 | } |
| 101 | 101 | ]; |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | $time = $time === null ? time() : $time; |
| 28 | 28 | return preg_replace_callback( |
| 29 | 29 | '#%([a-zA-Z])#', |
| 30 | - function ($match) use ($time) { |
|
| 30 | + function($match) use ($time) { |
|
| 31 | 31 | return date($match[1], $time); |
| 32 | 32 | }, |
| 33 | 33 | $string |
@@ -263,24 +263,24 @@ |
||
| 263 | 263 | { |
| 264 | 264 | $executable = new Executable\Mysqldump($this->pathToMysqldump); |
| 265 | 265 | $executable->credentials($this->user, $this->password) |
| 266 | - ->useHost($this->host) |
|
| 267 | - ->usePort($this->port) |
|
| 268 | - ->useProtocol($this->protocol) |
|
| 269 | - ->useQuickMode($this->quick) |
|
| 270 | - ->lockTables($this->lockTables) |
|
| 271 | - ->dumpBlobsHexadecimal($this->hexBlob) |
|
| 272 | - ->addGTIDStatement($this->gtidPurged) |
|
| 273 | - ->useCompression($this->compress) |
|
| 274 | - ->useExtendedInsert($this->extendedInsert) |
|
| 275 | - ->dumpTables($this->tables) |
|
| 276 | - ->singleTransaction($this->singleTransaction) |
|
| 277 | - ->dumpDatabases($this->databases) |
|
| 278 | - ->ignoreTables($this->ignoreTables) |
|
| 279 | - ->produceFilePerTable($this->filePerTable) |
|
| 280 | - ->dumpNoData($this->noData) |
|
| 281 | - ->dumpRoutines($this->routines) |
|
| 282 | - ->dumpStructureOnly($this->structureOnly) |
|
| 283 | - ->dumpTo($this->getDumpTarget($target)); |
|
| 266 | + ->useHost($this->host) |
|
| 267 | + ->usePort($this->port) |
|
| 268 | + ->useProtocol($this->protocol) |
|
| 269 | + ->useQuickMode($this->quick) |
|
| 270 | + ->lockTables($this->lockTables) |
|
| 271 | + ->dumpBlobsHexadecimal($this->hexBlob) |
|
| 272 | + ->addGTIDStatement($this->gtidPurged) |
|
| 273 | + ->useCompression($this->compress) |
|
| 274 | + ->useExtendedInsert($this->extendedInsert) |
|
| 275 | + ->dumpTables($this->tables) |
|
| 276 | + ->singleTransaction($this->singleTransaction) |
|
| 277 | + ->dumpDatabases($this->databases) |
|
| 278 | + ->ignoreTables($this->ignoreTables) |
|
| 279 | + ->produceFilePerTable($this->filePerTable) |
|
| 280 | + ->dumpNoData($this->noData) |
|
| 281 | + ->dumpRoutines($this->routines) |
|
| 282 | + ->dumpStructureOnly($this->structureOnly) |
|
| 283 | + ->dumpTo($this->getDumpTarget($target)); |
|
| 284 | 284 | // if compression is active and commands can be piped |
| 285 | 285 | if ($this->isHandlingCompression($target)) { |
| 286 | 286 | $executable->compressOutput($target->getCompression()); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | "php-opencloud/openstack", |
| 34 | 34 | "microsoft/azure-storage-blob" |
| 35 | 35 | ])) { |
| 36 | - continue; |
|
| 36 | + continue; |
|
| 37 | 37 | } |
| 38 | 38 | echo $package->name . ': ' . $package->version; |
| 39 | 39 | if (!preg_match('/^[v= ]*(([0-9]+)(\\.([0-9]+)(\\.([0-9]+)(-([0-9]+))?(-?([a-zA-Z-+][a-zA-Z0-9\\.\\-:]*)?)?)?)?)$/', $package->version)) { |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | { |
| 80 | 80 | if (!class_exists('\\MicrosoftAzure\\Storage\\Blob\\BlobRestProxy')) { |
| 81 | 81 | throw new Exception('Azure Bob Storage SDK not loaded: use composer to install ' . |
| 82 | - '"microsoft/azure-storage-blob"'); |
|
| 82 | + '"microsoft/azure-storage-blob"'); |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | // check for mandatory options |