@@ -14,7 +14,7 @@ class SelfUpdate extends BaseCommand
14
14
/**
15
15
* The library instance
16
16
*
17
- * @var Tatter\Patches\ Patches
17
+ * @var Patches
18
18
*/
19
19
public $ patches ;
20
20
@@ -103,11 +103,9 @@ protected function mergeMenu(): bool
103
103
{
104
104
case 'p ' :
105
105
return true ;
106
- break ;
107
106
108
107
case 'q ' :
109
108
return false ;
110
- break ;
111
109
112
110
case 'l ' :
113
111
$ this ->showFiles ($ codex ->changedFiles , 'Changed ' );
@@ -161,13 +159,9 @@ protected function conflictsMenu(): bool
161
159
162
160
switch (CLI ::prompt ('Selection? ' , ['l ' , 'g ' , 'o ' , 's ' , 'q ' ]))
163
161
{
164
- case 'p ' :
165
- return true ;
166
- break ;
167
-
162
+ case 'q ' :
168
163
case 's ' :
169
164
return false ;
170
- break ;
171
165
172
166
case 'l ' :
173
167
$ this ->showFiles ($ codex ->conflicts ['changed ' ], 'Changed ' );
@@ -188,7 +182,6 @@ protected function conflictsMenu(): bool
188
182
}
189
183
190
184
return true ;
191
- break ;
192
185
}
193
186
194
187
// If a non-returning item was select then run the menu again
@@ -198,7 +191,7 @@ protected function conflictsMenu(): bool
198
191
/**
199
192
* Display and process the resolve menu
200
193
*
201
- * @param array $files Array of files to list
194
+ * @param string $file Path to the file
202
195
* @param string $status Changed/Added/Deleted
203
196
*
204
197
* @return bool False to quit out of the whole process
@@ -219,16 +212,13 @@ protected function resolveMenu(string $file, string $status): bool
219
212
{
220
213
case 's ' :
221
214
return true ;
222
- break ;
223
215
224
216
case 'q ' :
225
217
return false ;
226
- break ;
227
218
228
219
case 'd ' :
229
220
CLI ::write ($ this ->patches ->diffFile ($ file ));
230
221
return $ this ->resolveMenu ($ file , $ status );
231
- break ;
232
222
233
223
case 'o ' :
234
224
$ current = $ codex ->workspace . 'current/ ' . $ file ;
@@ -243,9 +233,7 @@ protected function resolveMenu(string $file, string $status): bool
243
233
{
244
234
copy_path ($ current , $ project );
245
235
}
246
-
247
- return true ;
248
- break ;
236
+ break ;
249
237
}
250
238
251
239
return true ;
0 commit comments