@@ -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,11 +2,11 @@ |
||
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 | -use Spatie\DbDumper\Databases\Sqlite; |
|
8 | 7 | use Spatie\DbDumper\Databases\PostgreSql; |
9 | -use Spatie\Backup\Exceptions\CannotCreateDbDumper; |
|
8 | +use Spatie\DbDumper\Databases\Sqlite; |
|
9 | +use Spatie\DbDumper\DbDumper; |
|
10 | 10 | |
11 | 11 | class DbDumperFactory |
12 | 12 | { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
68 | - * @return \Generator|string[] |
|
68 | + * @return \Generator |
|
69 | 69 | */ |
70 | 70 | public function selectedFiles() |
71 | 71 | { |
@@ -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 |
@@ -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 | { |
@@ -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 | { |
@@ -3,11 +3,11 @@ |
||
3 | 3 | namespace Spatie\Backup\Tasks\Cleanup; |
4 | 4 | |
5 | 5 | use Exception; |
6 | -use Spatie\Backup\Helpers\Format; |
|
7 | 6 | use Illuminate\Support\Collection; |
7 | +use Spatie\Backup\BackupDestination\BackupDestination; |
|
8 | 8 | use Spatie\Backup\Events\CleanupHasFailed; |
9 | 9 | use Spatie\Backup\Events\CleanupWasSuccessful; |
10 | -use Spatie\Backup\BackupDestination\BackupDestination; |
|
10 | +use Spatie\Backup\Helpers\Format; |
|
11 | 11 | |
12 | 12 | class CleanupJob |
13 | 13 | { |