Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class RewriteConstructors extends Task |
||
11 | { |
||
12 | protected $taskStep = 's00'; |
||
13 | |||
14 | public function getTitle() |
||
15 | { |
||
16 | return 'Constructor rewrite'; |
||
17 | } |
||
18 | |||
19 | public function getDescription() |
||
22 | rewrites deprecated constructors to be compatible with PHP7.'; |
||
23 | } |
||
24 | |||
25 | public function runActualTask($params = []): ?string |
||
26 | { |
||
27 | $this->mu()->execMe( |
||
|
|||
28 | $this->mu()->getAboveWebRootDirLocation(), |
||
29 | 'php ' . $this->mu()->getWebRootDirLocation() . '--disable-class-file-create', |
||
30 | 'create upgrade directory: ' . $this->mu()->getWebRootDirLocation(), |
||
31 | false |
||
32 | ); |
||
33 | return null; |
||
34 | } |
||
35 | |||
36 | protected function hasCommitAndPush() |
||
39 | } |
||
40 | } |
||
41 |