| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class AddLegacyBranch extends Task |
||
| 12 | { |
||
| 13 | protected $taskStep = 's10'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string what should the legacy branch be called |
||
| 17 | */ |
||
| 18 | protected $nameOfLegacyBranch = '3'; |
||
| 19 | |||
| 20 | public function getTitle() |
||
| 21 | { |
||
| 22 | return 'Add Legacy Branch'; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getDescription() |
||
| 26 | { |
||
| 27 | return ' |
||
| 28 | Creates a legacy branch: "' . $this->nameOfLegacyBranch . '" of your module so that you |
||
| 29 | can keep making bugfixes to older versions. |
||
| 30 | You can set the name of the legacy branch as you see fit.'; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param array $params not currently used for this task |
||
| 35 | */ |
||
| 36 | public function runActualTask($params = []) |
||
| 51 | ); |
||
| 52 | } |
||
| 53 | |||
| 54 | protected function hasCommitAndPush() |
||
| 59 |