Total Complexity | 5 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 3 | Features | 0 |
1 | <?php |
||
11 | class Upgrade extends Task |
||
12 | { |
||
13 | protected $taskStep = 's40'; |
||
14 | |||
15 | protected $param1 = ''; |
||
16 | |||
17 | protected $param2 = ''; |
||
18 | |||
19 | protected $rootDirForCommand = ''; |
||
20 | |||
21 | /** |
||
22 | * @todo Prompt does not show up sometimes, leaving the program hanging |
||
23 | * --prompt |
||
24 | */ |
||
25 | protected $settings = ''; |
||
26 | |||
27 | public function getTitle() |
||
30 | } |
||
31 | |||
32 | public function getDescription() |
||
35 | Runs the silverstripe/upgrade task "upgrade". See: |
||
36 | Upgrade a variety of stuff (e.g. update reference with namespaces) |
||
37 | https://github.com/silverstripe/silverstripe-upgrader#upgrade'; |
||
38 | } |
||
39 | |||
40 | public function runActualTask($params = []): ?string |
||
57 | } |
||
58 | |||
59 | protected function hasCommitAndPush() |
||
64 |