| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function checkHealth(BackupDestination $backupDestination) |
||
| 20 | { |
||
| 21 | $usageInBytes = $backupDestination->usedStorage(); |
||
| 22 | |||
| 23 | $this->failIf( |
||
| 24 | $this->exceedsAllowance($usageInBytes), |
||
| 25 | trans('backup::notifications.unhealthy_backup_found_full', [ |
||
| 26 | 'disk_usage' => $this->humanReadableSize($usageInBytes), |
||
| 27 | 'disk_limit' => $this->humanReadableSize($this->bytes($this->maximumSizeInMegaBytes)), |
||
| 28 | ]) |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 47 |