@@ -49,7 +49,7 @@ |
||
49 | 49 | 'mongodump' => [], |
50 | 50 | 'mysqldump' => [ |
51 | 51 | '/usr/local/mysql/bin', // Mac OS X |
52 | - '/usr/mysql/bin', // Linux |
|
52 | + '/usr/mysql/bin', // Linux |
|
53 | 53 | ], |
54 | 54 | 'tar' => [], |
55 | 55 | ]; |
@@ -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 | [ |
@@ -222,7 +222,7 @@ |
||
222 | 222 | throw new Exception('backup requires a target config'); |
223 | 223 | } |
224 | 224 | $compress = Arr::getValue($json['target'], 'compress'); |
225 | - $filename = $this->getAdapterizedValue(Arr::getValue($json['target'], 'filename','')); |
|
225 | + $filename = $this->getAdapterizedValue(Arr::getValue($json['target'], 'filename', '')); |
|
226 | 226 | $dirname = $this->getAdapterizedValue(Arr::getValue($json['target'], 'dirname', '')); |
227 | 227 | |
228 | 228 | if ($dirname) { |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | . $info |
198 | 198 | . $footer |
199 | 199 | . '</body></html>'; |
200 | - $state = $result->allOk() ? 'OK' : ($result->backupOkButSkipsOrFails() ? 'WARNING' : 'ERROR'); |
|
200 | + $state = $result->allOk() ? 'OK' : ($result->backupOkButSkipsOrFails() ? 'WARNING' : 'ERROR'); |
|
201 | 201 | |
202 | 202 | $this->mailer->Subject = $this->subject . ' [' . $state . ']'; |
203 | 203 | $this->mailer->setFrom($this->senderMail, $this->senderName); |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | if (!$this->mailer->send()) { |
362 | 362 | throw new Exception($this->mailer->ErrorInfo); |
363 | 363 | } |
364 | - } catch (\Exception $e) { |
|
364 | + } catch (\Exception $e) { |
|
365 | 365 | throw new Exception($e->getMessage()); |
366 | 366 | } |
367 | 367 | } |