77use phpbu \App \Backup \Source ;
88use phpbu \App \Backup \Target ;
99use phpbu \App \Configuration ;
10+ use phpbu \App \Exception ;
1011use phpbu \App \Result ;
1112use SebastianFeldmann \Cli \Util ;
1213
@@ -26,8 +27,8 @@ class Restore extends Process
2627 /**
2728 * Restore all backups
2829 *
29- * @param \phpbu\App\ Configuration $configuration
30- * @return \phpbu\App\ Result
30+ * @param Configuration $configuration
31+ * @return Result
3132 * @throws \Exception
3233 */
3334 public function run (Configuration $ configuration ) : Result
@@ -45,8 +46,8 @@ public function run(Configuration $configuration) : Result
4546 * Collects all restore commands in a restore plan
4647 *
4748 * @param \phpbu\App\Configuration\Backup $backup
48- * @return \phpbu\App\Backup\Restore\ Plan
49- * @throws \phpbu\App\ Exception
49+ * @return Plan
50+ * @throws Exception
5051 */
5152 private function createRestorePlan (Configuration \Backup $ backup ): Plan
5253 {
@@ -61,7 +62,7 @@ private function createRestorePlan(Configuration\Backup $backup): Plan
6162 /**
6263 * Output the restore plan
6364 *
64- * @param \phpbu\App\Backup\Restore\ Plan $plan
65+ * @param Plan $plan
6566 */
6667 private function printPlan (Plan $ plan )
6768 {
@@ -70,10 +71,10 @@ private function printPlan(Plan $plan)
7071 }
7172
7273 /**
73- * @param \phpbu\App\Backup\ Target $target
74+ * @param Target $target
7475 * @param \phpbu\App\Configuration\Backup $backup
75- * @param \phpbu\App\Backup\Restore\ Plan $plan
76- * @throws \phpbu\App\ Exception
76+ * @param Plan $plan
77+ * @throws Exception
7778 */
7879 private function decryptBackup (Target $ target , Configuration \Backup $ backup , Plan $ plan )
7980 {
@@ -92,10 +93,10 @@ private function decryptBackup(Target $target, Configuration\Backup $backup, Pla
9293 }
9394
9495 /**
95- * @param \phpbu\App\Backup\ Target $target
96+ * @param Target $target
9697 * @param \phpbu\App\Configuration\Backup $backup
97- * @param \phpbu\App\Backup\Restore\ Plan $plan
98- * @throws \phpbu\App\ Exception
98+ * @param Plan $plan
99+ * @throws Exception
99100 */
100101 private function restoreBackup (Target $ target , Configuration \Backup $ backup , Plan $ plan )
101102 {
@@ -130,13 +131,13 @@ private function restoreBackup(Target $target, Configuration\Backup $backup, Pla
130131 /**
131132 * Output the decryption commands
132133 *
133- * @param \phpbu\App\Backup\Restore\ Plan $plan
134+ * @param Plan $plan
134135 * @return void
135136 */
136137 private function printDecryptionCommands (Plan $ plan ): void
137138 {
138139 if (!$ plan ->isCryptSupported ()) {
139- echo Util::formatWithColor ('fg-red ' , "WARNING: Your configured crypt does not support restore for now. \n" );
140+ echo Util::formatWithColor ('fg-red ' , "WARNING: Your configured crypt does not support restore for now. \n\n " );
140141 return ;
141142 }
142143 $ commands = $ plan ->getDecryptionCommands ();
@@ -152,13 +153,13 @@ private function printDecryptionCommands(Plan $plan): void
152153 /**
153154 * Output the restore commands
154155 *
155- * @param \phpbu\App\Backup\Restore\ Plan $plan
156+ * @param Plan $plan
156157 * @return void
157158 */
158159 private function printRestoreCommands (Plan $ plan ): void
159160 {
160161 if (!$ plan ->isSourceSupported ()) {
161- echo Util::formatWithColor ('fg-red ' , "WARNING: Your configured source does not support restore for now. \n" );
162+ echo Util::formatWithColor ('fg-red ' , "WARNING: Your configured source does not support restore for now. \n\n " );
162163 return ;
163164 }
164165
0 commit comments