| Conditions | 5 |
| Paths | 6 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function __construct(XoopsUpgrade $patch) |
||
| 22 | { |
||
| 23 | $this->patchClass = get_class($patch); |
||
| 24 | foreach ($patch->tasks as $task) { |
||
| 25 | if (!$patch->{"check_{$task}"}()) { |
||
| 26 | $this->addTask($task); |
||
| 27 | } |
||
| 28 | } |
||
| 29 | if (!empty($patch->usedFiles) && !$this->applied) { |
||
| 30 | $this->files = $patch->usedFiles; |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 45 |