@@ -15,7 +15,7 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * @param string $path |
| 17 | 17 | * |
| 18 | - * @return mixed |
|
| 18 | + * @return TemporaryDirectory |
|
| 19 | 19 | */ |
| 20 | 20 | public static function create($path = '') |
| 21 | 21 | { |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | /** |
| 12 | 12 | * Get the notification's delivery channels. |
| 13 | 13 | * |
| 14 | - * @param mixed $notifiable |
|
| 15 | 14 | * @return array |
| 16 | 15 | */ |
| 17 | 16 | public function via() |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\Backup\Notifications; |
| 4 | 4 | |
| 5 | -use Spatie\Backup\Helpers\Format; |
|
| 6 | -use Illuminate\Support\Collection; |
|
| 7 | 5 | use Illuminate\Notifications\Notification; |
| 6 | +use Illuminate\Support\Collection; |
|
| 7 | +use Spatie\Backup\Helpers\Format; |
|
| 8 | 8 | |
| 9 | 9 | abstract class BaseNotification extends Notification |
| 10 | 10 | { |
@@ -49,9 +49,9 @@ |
||
| 49 | 49 | /** |
| 50 | 50 | * @param array $dumpConfiguration |
| 51 | 51 | * |
| 52 | - * @param $dbDumper |
|
| 52 | + * @param DbDumper $dbDumper |
|
| 53 | 53 | * |
| 54 | - * @return mixed |
|
| 54 | + * @return DbDumper |
|
| 55 | 55 | */ |
| 56 | 56 | protected static function processExtraDumpParameters(array $dumpConfiguration, $dbDumper): DbDumper |
| 57 | 57 | { |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\Backup\Tasks\Backup; |
| 4 | 4 | |
| 5 | -use Spatie\DbDumper\DbDumper; |
|
| 5 | +use Spatie\Backup\Exceptions\CannotCreateDbDumper; |
|
| 6 | 6 | use Spatie\DbDumper\Databases\MySql; |
| 7 | 7 | use Spatie\DbDumper\Databases\PostgreSql; |
| 8 | -use Spatie\Backup\Exceptions\CannotCreateDbDumper; |
|
| 8 | +use Spatie\DbDumper\DbDumper; |
|
| 9 | 9 | |
| 10 | 10 | class DbDumperFactory |
| 11 | 11 | { |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @return \Generator|string[] |
|
| 56 | + * @return \Generator |
|
| 57 | 57 | */ |
| 58 | 58 | public function files() |
| 59 | 59 | { |
@@ -3,9 +3,9 @@ |
||
| 3 | 3 | namespace Spatie\Backup\Commands; |
| 4 | 4 | |
| 5 | 5 | use Exception; |
| 6 | +use Spatie\Backup\BackupDestination\BackupDestinationFactory; |
|
| 6 | 7 | use Spatie\Backup\Events\CleanupHasFailed; |
| 7 | 8 | use Spatie\Backup\Tasks\Cleanup\CleanupJob; |
| 8 | -use Spatie\Backup\BackupDestination\BackupDestinationFactory; |
|
| 9 | 9 | |
| 10 | 10 | class CleanupCommand extends BaseCommand |
| 11 | 11 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\Backup\Commands; |
| 4 | 4 | |
| 5 | -use Spatie\Backup\Helpers\Format; |
|
| 6 | 5 | use Illuminate\Support\Collection; |
| 6 | +use Spatie\Backup\Helpers\Format; |
|
| 7 | 7 | use Spatie\Backup\Tasks\Monitor\BackupDestinationStatus; |
| 8 | 8 | use Spatie\Backup\Tasks\Monitor\BackupDestinationStatusFactory; |
| 9 | 9 | |
@@ -3,11 +3,11 @@ |
||
| 3 | 3 | namespace Spatie\Backup\Notifications; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Config\Repository; |
| 6 | -use Spatie\Backup\Events\BackupHasFailed; |
|
| 7 | -use Illuminate\Notifications\Notification; |
|
| 8 | -use Spatie\Backup\Events\CleanupHasFailed; |
|
| 9 | 6 | use Illuminate\Contracts\Events\Dispatcher; |
| 7 | +use Illuminate\Notifications\Notification; |
|
| 8 | +use Spatie\Backup\Events\BackupHasFailed; |
|
| 10 | 9 | use Spatie\Backup\Events\BackupWasSuccessful; |
| 10 | +use Spatie\Backup\Events\CleanupHasFailed; |
|
| 11 | 11 | use Spatie\Backup\Events\CleanupWasSuccessful; |
| 12 | 12 | use Spatie\Backup\Events\HealthyBackupWasFound; |
| 13 | 13 | use Spatie\Backup\Events\UnhealthyBackupWasFound; |
@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\Backup\Notifications\Notifications; |
| 4 | 4 | |
| 5 | -use Spatie\Backup\Notifications\BaseNotification; |
|
| 6 | 5 | use Illuminate\Notifications\Messages\MailMessage; |
| 7 | -use Illuminate\Notifications\Messages\SlackMessage; |
|
| 8 | 6 | use Illuminate\Notifications\Messages\SlackAttachment; |
| 7 | +use Illuminate\Notifications\Messages\SlackMessage; |
|
| 9 | 8 | use Spatie\Backup\Events\CleanupWasSuccessful as CleanupWasSuccessfulEvent; |
| 9 | +use Spatie\Backup\Notifications\BaseNotification; |
|
| 10 | 10 | |
| 11 | 11 | class CleanupWasSuccessful extends BaseNotification |
| 12 | 12 | { |
@@ -2,16 +2,16 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\Backup\Tasks\Backup; |
| 4 | 4 | |
| 5 | -use Exception; |
|
| 6 | 5 | use Carbon\Carbon; |
| 7 | -use Spatie\DbDumper\DbDumper; |
|
| 6 | +use Exception; |
|
| 8 | 7 | use Illuminate\Support\Collection; |
| 8 | +use Spatie\Backup\BackupDestination\BackupDestination; |
|
| 9 | 9 | use Spatie\Backup\Events\BackupHasFailed; |
| 10 | +use Spatie\Backup\Events\BackupManifestWasCreated; |
|
| 10 | 11 | use Spatie\Backup\Events\BackupWasSuccessful; |
| 11 | 12 | use Spatie\Backup\Events\BackupZipWasCreated; |
| 12 | 13 | use Spatie\Backup\Exceptions\InvalidBackupJob; |
| 13 | -use Spatie\Backup\Events\BackupManifestWasCreated; |
|
| 14 | -use Spatie\Backup\BackupDestination\BackupDestination; |
|
| 14 | +use Spatie\DbDumper\DbDumper; |
|
| 15 | 15 | |
| 16 | 16 | class BackupJob |
| 17 | 17 | { |