Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function runActualTask($params = []): ?string |
||
28 | { |
||
29 | if ($this->mu()->getIsProjectUpgrade()) { |
||
|
|||
30 | $comment = 'add license'; |
||
31 | $command = |
||
32 | 'if(! isset($data["license"])) { ' |
||
33 | . ' $data["license"] = proprietary";' |
||
34 | . '}'; |
||
35 | ComposerJsonFixes::inst($this->mu())->UpdateJSONViaCommandLine( |
||
36 | $this->mu()->getGitRootDir(), |
||
37 | $command, |
||
38 | $comment |
||
39 | ); |
||
40 | $this->setCommitMessage('API: ' . $this->getTitle()); |
||
41 | } |
||
42 | return null; |
||
43 | } |
||
50 |