Completed
Pull Request — master (#379)
by Pierre
03:20
created
src/Tasks/Backup/DbDumperFactory.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,9 +49,9 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Tasks/Backup/FileSelection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     }
66 66
 
67 67
     /**
68
-     * @return \Generator|string[]
68
+     * @return \Generator
69 69
      */
70 70
     public function selectedFiles()
71 71
     {
Please login to merge, or discard this patch.
src/Tasks/Backup/Manifest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     }
54 54
 
55 55
     /**
56
-     * @return \Generator|string[]
56
+     * @return \Generator
57 57
      */
58 58
     public function files()
59 59
     {
Please login to merge, or discard this patch.
src/Commands/CleanupCommand.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Commands/ListCommand.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Notifications/BaseNotification.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Notifications/EventHandler.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,11 +3,11 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Notifications/Notifications/CleanupWasSuccessful.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Tasks/Cleanup/CleanupJob.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,11 +3,11 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.