Conditions | 4 |
Paths | 5 |
Total Lines | 20 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function runActualTask($params = []): ?string |
||
36 | { |
||
37 | if ($this->mu()->getIsModuleUpgrade()) { |
||
38 | } else { |
||
39 | if (! $this->param1) { |
||
40 | $this->param1 = '--recipe-core-constraint="' . $this->mu()->getFrameworkComposerRestraint() . '"'; |
||
41 | } |
||
42 | if (empty($this->rootDirForCommand)) { |
||
43 | $this->rootDirForCommand = $this->mu()->getGitRootDir(); |
||
44 | } |
||
45 | $this->runSilverstripeUpgradeTask( |
||
46 | 'recompose', |
||
47 | $this->param1, |
||
48 | $this->param2, |
||
49 | $this->rootDirForCommand, |
||
50 | $this->settings |
||
51 | ); |
||
52 | $this->setCommitMessage('API: upgrading composer requirements to SS4 - STEP 2'); |
||
53 | } |
||
54 | return null; |
||
55 | } |
||
65 |