We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2ad2c1 commit 4049f6fCopy full SHA for 4049f6f
src/Log/Prometheus.php
@@ -124,7 +124,7 @@ public function onPhpbuEnd(End $event)
124
foreach ($this->backupStats as $backupName => $backupStats) {
125
$this->write(
126
'phpbu_backup_size{name="' . $backupName . '"} ' .
127
- ($this->backupStats[$backupName]['size'] = " " ? "0" : $this->backupStats[$backupName]['size']) .
+ ($this->backupStats[$backupName]['size'] ?? "0") .
128
PHP_EOL
129
);
130
}
0 commit comments