| Conditions | 2 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare( strict_types=1 ); |
||
| 18 | public function runInternal() : int { |
||
| 19 | $orderedList = [ |
||
| 20 | 'close-pages', |
||
| 21 | 'archive-pages', |
||
| 22 | 'simple-updates', |
||
| 23 | 'failed-updates' |
||
| 24 | ]; |
||
| 25 | |||
| 26 | $res = new TaskResult( TaskResult::STATUS_OK ); |
||
| 27 | do { |
||
| 28 | $res->merge( $this->runSubtask( current( $orderedList ) ) ); |
||
| 29 | } while ( $res->isOK() && next( $orderedList ) ); |
||
| 30 | |||
| 31 | return $res->getStatus(); |
||
| 32 | } |
||
| 46 |