@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $this->write('# HELP phpbu_backup_success Whether or not the backup succeeded' . PHP_EOL); |
88 | 88 | $this->write('# TYPE phpbu_backup_success gauge' . PHP_EOL); |
89 | 89 | foreach ($event->getResult()->getBackups() as $backupResult) { |
90 | - $this->write('phpbu_backup_success{name="' . $backupResult->getName() . '} ' . (int)$backupResult->allOk() . PHP_EOL); |
|
90 | + $this->write('phpbu_backup_success{name="' . $backupResult->getName() . '} ' . (int) $backupResult->allOk() . PHP_EOL); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | $this->write(PHP_EOL); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | $this->write('# HELP phpbu_backup_last_run The unix timestamp of the last run' . PHP_EOL); |
105 | 105 | $this->write('# TYPE phpbu_backup_last_run counter' . PHP_EOL); |
106 | 106 | foreach ($this->backupStats as $backupName => $backupStats) { |
107 | - $this->write('phpbu_backup_last_run{name="' . $backupName . '} ' . (int)$this->backupStats[$backupName]['lastRun'] . PHP_EOL); |
|
107 | + $this->write('phpbu_backup_last_run{name="' . $backupName . '} ' . (int) $this->backupStats[$backupName]['lastRun'] . PHP_EOL); |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | $this->write(PHP_EOL); |