@@ -39,7 +39,7 @@ |
||
39 | 39 | */ |
40 | 40 | public function __construct(Runner $runner = null) |
41 | 41 | { |
42 | - $this->runner = $runner ? : new Runner\Simple(); |
|
42 | + $this->runner = $runner ?: new Runner\Simple(); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -29,7 +29,7 @@ |
||
29 | 29 | public function sync(Target $target, Result $result) |
30 | 30 | { |
31 | 31 | $sourcePath = $target->getPathname(); |
32 | - $targetPath = $this->path . '/' . $target->getFilename(); |
|
32 | + $targetPath = $this->path . '/' . $target->getFilename(); |
|
33 | 33 | |
34 | 34 | $s3 = S3Client::factory( |
35 | 35 | [ |
@@ -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 |
@@ -198,7 +198,7 @@ |
||
198 | 198 | . $info |
199 | 199 | . $footer |
200 | 200 | . '</body></html>'; |
201 | - $state = $result->allOk() ? 'OK' : ($result->backupOkButSkipsOrFails() ? 'WARNING' : 'ERROR'); |
|
201 | + $state = $result->allOk() ? 'OK' : ($result->backupOkButSkipsOrFails() ? 'WARNING' : 'ERROR'); |
|
202 | 202 | |
203 | 203 | $this->mailer->Subject = $this->subject . ' [' . ($this->isSimulation ? 'SIMULATION' : $state) . ']'; |
204 | 204 | $this->mailer->setFrom($this->senderMail, $this->senderName); |