| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare( strict_types=1 ); |
||
| 13 | class StartNew extends Task { |
||
| 14 | /** |
||
| 15 | * @inheritDoc |
||
| 16 | */ |
||
| 17 | public function runInternal() : int { |
||
| 18 | $orderedList = [ |
||
| 19 | 'update-list', |
||
| 20 | 'create-pages', |
||
| 21 | 'updates-around', |
||
| 22 | 'user-notice' |
||
| 23 | ]; |
||
| 24 | |||
| 25 | $res = new TaskResult( TaskResult::STATUS_OK ); |
||
| 26 | do { |
||
| 27 | $res->merge( $this->runSubtask( current( $orderedList ) ) ); |
||
| 28 | } while ( $res->isOK() && next( $orderedList ) ); |
||
| 29 | |||
| 30 | return $res->getStatus(); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @inheritDoc |
||
| 35 | */ |
||
| 36 | protected function getSubtasksMap() : array { |
||
| 42 | ]; |
||
| 43 | } |
||
| 45 |